mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-03 14:06:51 +08:00
Settings: Use a switch instead of a checkbox
Follows the Material Design scheme better
This commit is contained in:
@ -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,
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user