handle viewinsets

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-24 23:55:20 +08:00
parent 12f7c88786
commit 3b16abf204
19 changed files with 88 additions and 75 deletions

View File

@@ -15,7 +15,7 @@ abstract class CommonSearchController<R, T> extends CommonListController<R, T> {
}
@override
Future<void> onRefresh() {
Future<void> onRefresh([_]) {
if (editController.value.text.isEmpty) {
return Future.syncValue(null);
}

View File

@@ -46,6 +46,9 @@ abstract class CommonSearchPageState<S extends StatefulWidget, R, T>
ViewSliverSafeArea(
sliver: Obx(() => _buildBody(controller.loadingState.value)),
),
SliverPadding(
padding: .only(bottom: MediaQuery.viewInsetsOf(context).bottom),
),
],
),
);
@@ -81,7 +84,7 @@ abstract class CommonSearchPageState<S extends StatefulWidget, R, T>
..focusNode.requestFocus(),
),
),
onSubmitted: (value) => controller.onRefresh(),
onSubmitted: controller.onRefresh,
),
);
if (multiSelect) {