DialogShower.init(context); # init with a root context in your app
DialogShower shower = DialogShower()
..barrierDismissible = true
..containerShadowColor = Colors.grey
..containerShadowBlurRadius = 50.0
..containerBorderRadius = 5.0
..show(__your_widget_here__);
BtKey updateWidgetsKey = BtKey(); # more decoupling :P
String text = 'You are some handsome';
@override
Widget build(BuildContext context) {
return Btw(builder: (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 changed, call eye update :)
},
);
});
}
Btv<String> text = 'You are so awesome'.btv;
@override
Widget build(BuildContext context) {
return Btw(builder: (context) {
return InkWell(
child: Text(text.value),
onTap: () {
List<String> v = ['Niu', 'Ok', 'Six', 'Wa', 'Ha', 'WooLa'];
text.value = (v..shuffle()).first;
},
);
});
}
QQ Group ID: 638027386