Last updated:
0 purchases
fast snackbar
Description #
fast_snackbar: Simplifies snack bar presentation in Flutter. The FastSnackbar extension on BuildContext enables displaying snack bars without explicit BuildContext. Key features include displaying snack bars in varied colors like green (success), red (error), yellow (warning), as well as support for customizable hexadecimal color codes and Colors widget to match user preferences.
Features #
In your pubspec.yaml
dependencies:
fast_snackbar : ^latest-version
copied to clipboard
Usage #
ElevatedButton(
child: Text('succes snackbar'),
onPressed: () {
// You can use TypeFastSnackbar.success | TypeFastSnackbar.error | TypeFastSnackbar.warning
context.showFastSnackbar("sukses", color: TypeFastSnackbar.success);
},
),
copied to clipboard
Or
ElevatedButton(
child: Text('show snackbar'),
onPressed: () {
// You can use Colors widget
context.showFastSnackbar("sukses", color: Colors.red);
},
),
copied to clipboard
Or
ElevatedButton(
child: Text('show snackbar'),
onPressed: () {
// You can use Colors hexadesimal
context.showFastSnackbar("sukses", color: "#000");
},
),
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.