loading_toast 0.0.1 copy "loading_toast: ^0.0.1" to clipboard
loading_toast: ^0.0.1 copied to clipboard

flutter toast, context not required, also can show loading indicator or else

Loading Toast #

Installing #

dependencies:
  loading_toast: ^latest

How to use #

if you want to use without context, should add builder: LToast.init(), in your MaterialApp/CupertinoApp:

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
      builder: LToast.init(),
    );
  }
}

Then, enjoy yourself:

                LToast.showText('toast text');

                LToast.showText(
                  'count: $_counter',
                  alignment: Alignment.topCenter,
                );

                LToast.showLoading(
                  const CircularProgressIndicator(),
                );

                LToast.show(
                  const Icon(
                          Icons.remove,
                          color: Colors.orange,
                        ),
                );


0
likes
0
points
9
downloads

Publisher

unverified uploader

Weekly Downloads

flutter toast, context not required, also can show loading indicator or else

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on loading_toast