mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-12 13:51:38 +08:00
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user