summaryrefslogtreecommitdiff
path: root/lib/widgets
diff options
context:
space:
mode:
authoruvok2025-08-01 18:35:31 +0200
committeruvok2025-08-01 18:35:31 +0200
commitaa7a3935e053e3ab7294ce60b767632943fc682b (patch)
treefa0c5cce9448132911d1ad907812c48796ea823a /lib/widgets
parente4fb32cd7489f7ad6077dab4f1d31d3756830e72 (diff)
Hilight current selection
Diffstat (limited to 'lib/widgets')
-rw-r--r--lib/widgets/badge_motive_list.dart12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/widgets/badge_motive_list.dart b/lib/widgets/badge_motive_list.dart
index a9fe92e..d38ad18 100644
--- a/lib/widgets/badge_motive_list.dart
+++ b/lib/widgets/badge_motive_list.dart
@@ -31,6 +31,13 @@ class BadgeMotiveList extends NotifyingListWidget<BadgeMotive> {
class _BadgeMotiveListState extends State<BadgeMotiveList> {
@override
+ void initState() {
+ // I have no idea about the connection state here...
+ //widget._motiveVM.getCurrentMotive().ignore();
+ super.initState();
+ }
+
+ @override
Widget build(BuildContext context) {
var mytheme = Theme.of(context);
@@ -40,7 +47,10 @@ class _BadgeMotiveListState extends State<BadgeMotiveList> {
children: [
ElevatedButton(
child: Text("Refresh"),
- onPressed: () async => await widget._motiveVM.updateMotives(),
+ onPressed: () async {
+ await widget._motiveVM.updateMotives();
+ await widget._motiveVM.getCurrentMotive();
+ },
),
Expanded(
child: ListenableBuilder(