From 220eae3eb135eac5b03122d95d6fbc8c3bde2513 Mon Sep 17 00:00:00 2001 From: uvok Date: Fri, 1 Aug 2025 15:07:26 +0200 Subject: Add proper selection/setting motive --- lib/model/motive_selection/mock_badge_motive_selection.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/model/motive_selection/mock_badge_motive_selection.dart') diff --git a/lib/model/motive_selection/mock_badge_motive_selection.dart b/lib/model/motive_selection/mock_badge_motive_selection.dart index 6a4cff0..572da2a 100644 --- a/lib/model/motive_selection/mock_badge_motive_selection.dart +++ b/lib/model/motive_selection/mock_badge_motive_selection.dart @@ -27,7 +27,6 @@ class MockBadgeMotiveSelection implements BadgeMotiveSelection { @override Future getCurrentMotive() async { - templates.add(BadgeMotive(templates.length, "foo")); return _currentMotive; } @@ -38,7 +37,7 @@ class MockBadgeMotiveSelection implements BadgeMotiveSelection { @override Future setCurrentMotive(BadgeMotive motive) async { - return await Future.delayed(Duration(milliseconds: 100), () { + return await Future.delayed(Duration(milliseconds: 300), () { _currentMotive = motive; }); } -- cgit v1.2.3