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))
|
result(FlutterError(code: String(error.code), message: error.description, details: nil))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
result(true)
|
result("")
|
||||||
case "change_config_options":
|
case "change_config_options":
|
||||||
guard let options = call.arguments as? String else {
|
guard let options = call.arguments as? String else {
|
||||||
result(FlutterError(code: "INVALID_ARGS", message: nil, details: nil))
|
result(FlutterError(code: "INVALID_ARGS", message: nil, details: nil))
|
||||||
|
|||||||
@@ -86,7 +86,8 @@ class ProfileDetailsPage extends HookConsumerWidget with PresLogger {
|
|||||||
return Stack(
|
return Stack(
|
||||||
children: [
|
children: [
|
||||||
Scaffold(
|
Scaffold(
|
||||||
body: CustomScrollView(
|
body: SafeArea(
|
||||||
|
child: CustomScrollView(
|
||||||
slivers: [
|
slivers: [
|
||||||
SliverAppBar(
|
SliverAppBar(
|
||||||
title: Text(t.profile.detailsPageTitle),
|
title: Text(t.profile.detailsPageTitle),
|
||||||
@@ -176,14 +177,15 @@ class ProfileDetailsPage extends HookConsumerWidget with PresLogger {
|
|||||||
),
|
),
|
||||||
leading: const Icon(Icons.update),
|
leading: const Icon(Icons.update),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
final intervalInHours = await SettingsInputDialog(
|
final intervalInHours =
|
||||||
|
await SettingsInputDialog(
|
||||||
title: t.profile.detailsForm
|
title: t.profile.detailsForm
|
||||||
.updateIntervalDialogTitle,
|
.updateIntervalDialogTitle,
|
||||||
initialValue: options?.updateInterval.inHours,
|
initialValue: options?.updateInterval.inHours,
|
||||||
optionalAction: (
|
optionalAction: (
|
||||||
t.general.state.disable,
|
t.general.state.disable,
|
||||||
() =>
|
() => notifier.setField(
|
||||||
notifier.setField(updateInterval: none()),
|
updateInterval: none()),
|
||||||
),
|
),
|
||||||
validator: isPort,
|
validator: isPort,
|
||||||
mapTo: int.tryParse,
|
mapTo: int.tryParse,
|
||||||
@@ -240,6 +242,7 @@ class ProfileDetailsPage extends HookConsumerWidget with PresLogger {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
if (showLoadingOverlay)
|
if (showLoadingOverlay)
|
||||||
Positioned.fill(
|
Positioned.fill(
|
||||||
child: Container(
|
child: Container(
|
||||||
|
|||||||
@@ -43,7 +43,8 @@ class ProfilesOverviewModal extends HookConsumerWidget {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
return Stack(
|
return SafeArea(
|
||||||
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
CustomScrollView(
|
CustomScrollView(
|
||||||
controller: scrollController,
|
controller: scrollController,
|
||||||
@@ -110,6 +111,7 @@ class ProfilesOverviewModal extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user