fix filter radio buttons (remove deprecated code)
This commit is contained in:
@@ -296,10 +296,7 @@ class ListPage extends StatelessWidget {
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
ListTile(
|
||||
title: const Text(Strings.author),
|
||||
leading: Radio<int>(
|
||||
value: 0,
|
||||
RadioGroup<int>(
|
||||
groupValue: provider.filterBy,
|
||||
onChanged: (value) {
|
||||
if (value != null) {
|
||||
@@ -307,25 +304,19 @@ class ListPage extends StatelessWidget {
|
||||
Navigator.pop(context);
|
||||
}
|
||||
},
|
||||
),
|
||||
child: Column(
|
||||
children: [
|
||||
ListTile(
|
||||
title: const Text(Strings.author),
|
||||
leading: Radio<int>(value: 0),
|
||||
onTap: () {
|
||||
provider.setFilterBy(0);
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
|
||||
ListTile(
|
||||
title: const Text(Strings.quote),
|
||||
leading: Radio<int>(
|
||||
value: 1,
|
||||
groupValue: provider.filterBy,
|
||||
onChanged: (value) {
|
||||
if (value != null) {
|
||||
provider.setFilterBy(value);
|
||||
Navigator.pop(context);
|
||||
}
|
||||
},
|
||||
),
|
||||
leading: Radio<int>(value: 1),
|
||||
onTap: () {
|
||||
provider.setFilterBy(1);
|
||||
Navigator.pop(context);
|
||||
@@ -333,6 +324,9 @@ class ListPage extends StatelessWidget {
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user