snack 2.0.0 snack: ^2.0.0 copied to clipboard
An extension library for easier access to commonly used functionality for SnackBars
Extensions for SnackBars and other goodies 🍭
Usage #
SnackBar().show(context);
Example #
class Example extends StatelessWidget {
final bar = SnackBar(content: Text('Hello, world!'));
@override
Widget build(BuildContext context) {
return Scaffold(
body: RaisedButton(
child: Text('Show snack'),
onPressed: () => bar.show(context),
),
);
}
}