forked from eatvio/eatvio_app
fix: settings switches padding
This commit is contained in:
@@ -195,6 +195,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
),
|
||||
),
|
||||
_tile(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16),
|
||||
onTap: () {
|
||||
setState(() {
|
||||
updatesNotificationsSwitchState = !updatesNotificationsSwitchState;
|
||||
@@ -223,6 +224,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
),
|
||||
_divider(context),
|
||||
_tile(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16),
|
||||
onTap: () {
|
||||
setState(() {
|
||||
fillDiaryNotificationsSwitchState = !fillDiaryNotificationsSwitchState;
|
||||
@@ -251,6 +253,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
),
|
||||
_divider(context),
|
||||
_tile(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16),
|
||||
onTap: () {
|
||||
setState(() {
|
||||
moodSwitchState = !moodSwitchState;
|
||||
@@ -279,6 +282,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
),
|
||||
_divider(context),
|
||||
_tile(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16),
|
||||
onTap: () {
|
||||
setState(() {
|
||||
bedTimeSwitchState = !bedTimeSwitchState;
|
||||
@@ -397,8 +401,10 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
required String title,
|
||||
required Function() onTap,
|
||||
Widget? trailing,
|
||||
EdgeInsets? padding,
|
||||
}) {
|
||||
return ListTile(
|
||||
contentPadding: padding,
|
||||
onTap: onTap,
|
||||
title: Text(
|
||||
title,
|
||||
|
||||
Reference in New Issue
Block a user