Fix bugs
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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 {
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user