Made tips more random

This commit is contained in:
JHubi1 2024-06-09 12:57:55 +02:00
parent 9fb9904bdb
commit 93818cfbad
No known key found for this signature in database
GPG Key ID: 7BF82570CBBBD050
1 changed files with 4 additions and 2 deletions

View File

@ -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),