This commit is contained in:
problematicconsumer
2024-01-12 22:45:52 +03:30
parent 835668b869
commit 3c38d6a88f
3 changed files with 202 additions and 197 deletions

View File

@@ -48,7 +48,7 @@ public class MethodHandler: NSObject, FlutterPlugin {
result(FlutterError(code: String(error.code), message: error.description, details: nil))
return
}
result(true)
result("")
case "change_config_options":
guard let options = call.arguments as? String else {
result(FlutterError(code: "INVALID_ARGS", message: nil, details: nil))

View File

@@ -86,7 +86,8 @@ class ProfileDetailsPage extends HookConsumerWidget with PresLogger {
return Stack(
children: [
Scaffold(
body: CustomScrollView(
body: SafeArea(
child: CustomScrollView(
slivers: [
SliverAppBar(
title: Text(t.profile.detailsPageTitle),
@@ -176,14 +177,15 @@ class ProfileDetailsPage extends HookConsumerWidget with PresLogger {
),
leading: const Icon(Icons.update),
onTap: () async {
final intervalInHours = await SettingsInputDialog(
final intervalInHours =
await SettingsInputDialog(
title: t.profile.detailsForm
.updateIntervalDialogTitle,
initialValue: options?.updateInterval.inHours,
optionalAction: (
t.general.state.disable,
() =>
notifier.setField(updateInterval: none()),
() => notifier.setField(
updateInterval: none()),
),
validator: isPort,
mapTo: int.tryParse,
@@ -240,6 +242,7 @@ class ProfileDetailsPage extends HookConsumerWidget with PresLogger {
],
),
),
),
if (showLoadingOverlay)
Positioned.fill(
child: Container(

View File

@@ -43,7 +43,8 @@ class ProfilesOverviewModal extends HookConsumerWidget {
},
);
return Stack(
return SafeArea(
child: Stack(
children: [
CustomScrollView(
controller: scrollController,
@@ -110,6 +111,7 @@ class ProfilesOverviewModal extends HookConsumerWidget {
),
),
],
),
);
}
}