Last updated:
0 purchases
fancy snackbar
Fancy Snackbar #
Fancy snackbar package lets you add a beautiful snackbar to your Flutter app.
Installation #
Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
fancy_snackbar: ^0.0.1
copied to clipboard
Import the package and use it in your Flutter App.
import 'package:fancy_snackbar/fancy_snackbar.dart';
copied to clipboard
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!!")),
),
);
}
}
copied to clipboard
Usage #
FancySnackbar.show(context, "Hi, I'm happy to use the Fancy Snackbar!",
logo: const Icon(Icons.done_all, color: Colors.white),
seconds: 05);
copied to clipboard
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.