fancy_image_loader 1.0.0 copy "fancy_image_loader: ^1.0.0" to clipboard
fancy_image_loader: ^1.0.0 copied to clipboard

Fancy Image Loader is a new image handling plugin with placeholder and loading.

example/lib/main.dart

import 'package:fancy_image_loader/fancy_image_loader.dart';
import 'package:fancy_image_loader_example/assets.dart';
import 'package:flutter/material.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: Padding(
          padding: EdgeInsets.all(8.0),
          child: SingleChildScrollView(
            child: Column(
              children: [
                FancyImageLoader(
                    height: 200,
                    width: 200,
                    fit: BoxFit.contain,
                    path: ImageAssets.flutter,
                    ph: ImageAssets.placeholder),
                SizedBox(
                  height: 30,
                  width: double.maxFinite,
                ),
                FancyImageLoader(
                  path: SVGAssets.flutter,
                  height: 200,
                  width: 200,
                ),
                SizedBox(
                  height: 30,
                ),
                FancyImageLoader(
                  path: "https://picsum.photos/200/200",
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
2
likes
150
points
114
downloads

Publisher

unverified uploader

Weekly Downloads

Fancy Image Loader is a new image handling plugin with placeholder and loading.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, flutter, flutter_web_plugins, plugin_platform_interface, websafe_svg

More

Packages that depend on fancy_image_loader