image_loader_flutter 0.0.9 copy "image_loader_flutter: ^0.0.9" to clipboard
image_loader_flutter: ^0.0.9 copied to clipboard

The package enhances performance with image caching, ensuring smooth and efficient image rendering in your Flutter apps.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:image_loader_flutter/image_loader_flutter.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Image Loader Flutter'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: const Center(
        child: Column(
          children: [
            //load from internet
            SizedBox(
              height: 150,
              width: 150,
              child: ImageLoaderFlutterWidgets(
                radius: 10,
                onTap: true,
                circle: true,
                image:
                    "https://avatars.githubusercontent.com/u/84148157?s=64&v=4",
              ),
            ),
            SizedBox(
              height: 10,
            ),
            //load from internet
            SizedBox(
              height: 150,
              width: 150,
              child: ImageLoaderFlutterWidgets(
                radius: 10,
                onTap: true,
                circle: true,
                image: "http",
              ),
            )
          ],
        ),
      ),
    );
  }
}
2
likes
140
points
72
downloads

Publisher

verified publishercodingislife.net

Weekly Downloads

The package enhances performance with image caching, ensuring smooth and efficient image rendering in your Flutter apps.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, flutter, photo_view

More

Packages that depend on image_loader_flutter