diff --git a/lib/main.dart b/lib/main.dart index 5f2191b..7905c8c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -349,9 +349,11 @@ class _MainAppState extends State { hoverColor: Colors.transparent, onTap: () { selectionHaptic(); - setState(() { + var tmpTip = tipId; + while (tmpTip == tipId) { tipId = Random().nextInt(5); - }); + } + setState(() {}); }, child: Padding( padding: const EdgeInsets.only(top: 16, bottom: 16),