Bunch together app specific settings

This commit is contained in:
vishnukvmd 2023-10-19 21:03:35 +05:30
parent ec895546f6
commit a09a4e5c9b

View file

@ -107,21 +107,6 @@ class _AdvancedSectionWidgetState extends State<AdvancedSectionWidget> {
),
),
sectionOptionSpacing,
MenuItemWidget(
captionedTextWidget: CaptionedTextWidget(
title: l10n.crashAndErrorReporting,
),
trailingWidget: ToggleSwitchWidget(
value: () => SuperLogging.shouldReportErrors(),
onChanged: () async {
await SuperLogging.setShouldReportErrors(
!SuperLogging.shouldReportErrors(),
);
setState(() {});
},
),
),
sectionOptionSpacing,
if (Platform.isAndroid) ...[
MenuItemWidget(
captionedTextWidget: CaptionedTextWidget(
@ -139,6 +124,21 @@ class _AdvancedSectionWidgetState extends State<AdvancedSectionWidget> {
),
sectionOptionSpacing,
],
MenuItemWidget(
captionedTextWidget: CaptionedTextWidget(
title: l10n.crashAndErrorReporting,
),
trailingWidget: ToggleSwitchWidget(
value: () => SuperLogging.shouldReportErrors(),
onChanged: () async {
await SuperLogging.setShouldReportErrors(
!SuperLogging.shouldReportErrors(),
);
setState(() {});
},
),
),
sectionOptionSpacing,
],
);
}