snack

snack pub style: pedantic license

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),
      ),
    );
  }
}

Libraries

snack