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

Fancy Snackbar Flutter Package

Fancy Snackbar #

Fancy snackbar package lets you add a beautiful snackbar to your Flutter app.

Installation #

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  fancy_snackbar: ^0.0.1
  1. Import the package and use it in your Flutter App.
import 'package:fancy_snackbar/fancy_snackbar.dart';

Example #

There are a number of properties that you can modify:

  • message (Different type of message can put)
  • logo (icons can modify)
  • color
  • textColor
  • seconds

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Package example"),
      ),
      body: Center(
        child: ElevatedButton(
            onPressed: () {
              FancySnackbar.show(
                  context, "Hi, I'm happy to use the Fancy Snackbar!",
                  logo: const Icon(Icons.done_all, color: Colors.white),
                  seconds: 05);
            },
            child: const Text("Show SnackBar!!")),
      ),
    );
  }
}

Usage #

FancySnackbar.show(context, "Hi, I'm happy to use the Fancy Snackbar!",
                  logo: const Icon(Icons.done_all, color: Colors.white),
                  seconds: 05);

Next Goals #

  • ✅ Add onTap for functions and Poistions of the snackbar. Now, you can specify the onTap and specify a function.
  • ❌ Add more functionality to the package.
8
likes
140
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Fancy Snackbar Flutter Package

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on fancy_snackbar