easy_loader 2.0.0 copy "easy_loader: ^2.0.0" to clipboard
easy_loader: ^2.0.0 copied to clipboard

The easiest way to handle a simple full screen loader in Flutter. Written in Dart. Fully customizable.

EasyLoader #

The easiest way to handle a simple full screen loader in Flutter. Written in Dart. Fully customizable.

Screenshot

Getting Started #

Add this to your package's pubspec.yaml file

dependencies:
  easy_loader: ^1.0.3
copied to clipboard

Usage #

Next, you just have to import the package using:

import 'package:easy_loader/easy_loader.dart';
copied to clipboard

Then wrap your body within a Stack and place the EasyLoader() widget at the end of the Stack

  Widget build(BuildContext context) {
    return Scaffold(
      //// Wrap your body in a stack
      body: Stack(
        children: <Widget>[
          Center(
            child: Text("Lorem Ipsum"),
          ),
          //// Put the loader widget at the end of the stack. You can set it to appear based on a boolean. E.g. a loading flag.
          EasyLoader(image: AssetImage('assets/loading.png'),)
        ],
      ),
    );
  }
copied to clipboard

All done! You can customize other things like the icon size, background color, icon color and the animation by passing the values into the constructor.

16
likes
160
points
316
downloads

Publisher

verified publisheraligorithm.i.ng

Weekly Downloads

2024.09.22 - 2025.04.06

The easiest way to handle a simple full screen loader in Flutter. Written in Dart. Fully customizable.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on easy_loader