Skip to content

GiYeongUM/flutter_icon_snackbar

Repository files navigation

flutter_icon_snackbar

This widget is a simple snackbar of the flutter that contains animations and icons.

Flutter

Features

dependencies:
  flutter_icon_snackbar: ^<latest_version>

💪 Usage

1. common usage

Default type of icon_snackbar.

IconSnackBar.show(
    context: context, 
    snackBarType: SnackBarType.success, 
    label: 'Save successfully'
);

2. snackbar type

Snackbar has many types, and you can set the types of Save, Fail, and Alert. and icon includes animation, and here are the icons that you can use.

IconSnackBar.show(context: context, snackBarType: SnackBarType.error, label: 'Save failed!');
IconSnackBar.show(context: context, snackBarType: SnackBarType.alert, label: 'Data required');

3. custom theme

Also modify the theme of Snackbar. The theme contains the following data.

IconSnackBar.show(
    context: context, 
    snackBarType: SnackBarType.alert, 
    label: 'Data required',
    backgroundColor: Colors.red,
    iconColor: Colors.white,
);

About

Flutter animated snackbar with icons

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages