asuka 1.0.2 asuka: ^1.0.2 copied to clipboard
Show Snackbars, dialogs, ModalSheets in a single provider. Simple and Clean.
Asuka #
Show Snackbars, dialogs, ModalSheets in a single provider. Simple and Clean.
Instalation #
Add in your pubspec.yaml
dependencies:
asuka: any
now, add in your MaterialApp:
import 'package:asuka/asuka.dart' as asuka;
MaterialApp(
builder: asuka.builder,
);
THAT'S IT!
Using #
Snackbars #
import 'package:asuka/asuka.dart' as asuka;
//use same Scaffold documetation
asuka.showSnackBar(SnackBar(
content: Text("Hello World"),
));
BottomSheet #
import 'package:asuka/asuka.dart' as asuka;
//use same Scaffold documetation
asuka.showBottomSheet((context) => Container());
Dialogs #
import 'package:asuka/asuka.dart' as asuka;
//use same Material documetation
asuka.showDialog(
builder: (context) => AlertDialog(),
);
Features and bugs #
Please send feature requests and bugs at the issue tracker.