diff --git a/frontend/lib/pages/list.dart b/frontend/lib/pages/list.dart index fa7487a..21e221b 100644 --- a/frontend/lib/pages/list.dart +++ b/frontend/lib/pages/list.dart @@ -296,43 +296,37 @@ class ListPage extends StatelessWidget { child: Column( mainAxisSize: MainAxisSize.min, children: [ - ListTile( - title: const Text(Strings.author), - leading: Radio( - value: 0, - groupValue: provider.filterBy, - onChanged: (value) { - if (value != null) { - provider.setFilterBy(value); - Navigator.pop(context); - } - }, - ), - onTap: () { - provider.setFilterBy(0); - Navigator.pop(context); + RadioGroup( + groupValue: provider.filterBy, + onChanged: (value) { + if (value != null) { + provider.setFilterBy(value); + Navigator.pop(context); + } }, - ), - - ListTile( - title: const Text(Strings.quote), - leading: Radio( - value: 1, - groupValue: provider.filterBy, - onChanged: (value) { - if (value != null) { - provider.setFilterBy(value); - Navigator.pop(context); - } - }, + child: Column( + children: [ + ListTile( + title: const Text(Strings.author), + leading: Radio(value: 0), + onTap: () { + provider.setFilterBy(0); + Navigator.pop(context); + }, + ), + ListTile( + title: const Text(Strings.quote), + leading: Radio(value: 1), + onTap: () { + provider.setFilterBy(1); + Navigator.pop(context); + }, + ), + ], ), - onTap: () { - provider.setFilterBy(1); - Navigator.pop(context); - }, ), ], - ), + ) ); }, );