flutter_dialog_shower 1.0.0 copy "flutter_dialog_shower: ^1.0.0" to clipboard
flutter_dialog_shower: ^1.0.0 copied to clipboard

outdated

A Flutter project. Writted with pure dart, supported both iOS and Android.


### Build & Run example/lib/main.dart on iOS/Android device for more demostrations

DialogShower #

Simple to use
DialogShower.init(context);  # init with a root context in your app
    
DialogShower shower = DialogShower()
..build()
..barrierDismissible = true
..containerShadowColor = Colors.grey
..containerShadowBlurRadius = 50.0
..containerBorderRadius = 5.0
..show(__your_widget_here__);

Brother #

1. Update by key for decoupling
BtKey updateWidgetsKey = BtKey();

String text = 'You are some handsome';

@override
Widget build(BuildContext context) {
updateWidgetsKey.eye; // Put an eye here. Dota/LOL online game 插个眼.
return InkWell(
  child: Text(text),
  onTap: () {
    List<String> v = ['❗️', '🔴', '👠', '⌘', '🏁', '咳', 'か', 'нг', 'зз'];
    text = (v..shuffle()).first;
    updateWidgetsKey.update();  // when text update, call eye update :)
  },
);
}
2. Update by value
Btv<String> text = 'You are so awesome'.btv;

@override
Widget build(BuildContext context) {
return InkWell(
  child: Text(text.value),
  onTap: () {
    List<String> v = ['Niu', 'Ok', 'Six', 'Wa', 'Ha', 'WooLa'];
    text.value = (v..shuffle()).first;
  },
);
}
22
likes
0
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter project. Writted with pure dart, supported both iOS and Android.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cupertino_icons, flutter

More

Packages that depend on flutter_dialog_shower

Packages that implement flutter_dialog_shower