Settings: Use a switch instead of a checkbox

Follows the Material Design scheme better
This commit is contained in:
Vishesh Handa
2019-10-11 02:30:45 +02:00
parent 06824ccee3
commit fbb1b12cb2

View File

@ -358,7 +358,7 @@ class BoolPreference extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ListTile( return ListTile(
title: Text(title), title: Text(title),
trailing: Checkbox( trailing: Switch(
value: defaultValue, value: defaultValue,
onChanged: onChange, onChanged: onChange,
), ),