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

image_loader_flutter is a Flutter package that simplifies loading images from various sources with caching and error handling. It supports loading from URLs, assets, and files, offering placeholder an [...]

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: 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",
              ),
            )
          ],
        ),
      ),
    );
  }
}
1
likes
0
pub points
48%
popularity

Publisher

verified publishercodingislife.net

image_loader_flutter is a Flutter package that simplifies loading images from various sources with caching and error handling. It supports loading from URLs, assets, and files, offering placeholder and error widgets. The package enhances performance with image caching, ensuring smooth and efficient image rendering in your Flutter apps. Easy to integrate and use, it improves user experience by handling image loading seamlessly.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cached_network_image, flutter, photo_view

More

Packages that depend on image_loader_flutter