Made tips more random
This commit is contained in:
parent
9fb9904bdb
commit
93818cfbad
|
@ -349,9 +349,11 @@ class _MainAppState extends State<MainApp> {
|
||||||
hoverColor: Colors.transparent,
|
hoverColor: Colors.transparent,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
selectionHaptic();
|
selectionHaptic();
|
||||||
setState(() {
|
var tmpTip = tipId;
|
||||||
|
while (tmpTip == tipId) {
|
||||||
tipId = Random().nextInt(5);
|
tipId = Random().nextInt(5);
|
||||||
});
|
}
|
||||||
|
setState(() {});
|
||||||
},
|
},
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(top: 16, bottom: 16),
|
padding: const EdgeInsets.only(top: 16, bottom: 16),
|
||||||
|
|
Loading…
Reference in New Issue