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

@@ -43,7 +43,10 @@ class _MemberSearchChildPageState extends State<MemberSearchChildPage>
SliverPadding(
padding: EdgeInsets.only(
top: widget.searchType == MemberSearchType.archive ? 7 : 0,
bottom: MediaQuery.viewPaddingOf(context).bottom + 100,
bottom:
MediaQuery.viewPaddingOf(context).bottom +
MediaQuery.viewInsetsOf(context).bottom +
100,
),
sliver: switch (widget.searchType) {
MemberSearchType.archive => Obx(

View File

@@ -47,7 +47,7 @@ class MemberSearchController extends GetxController
}
}
void submit() {
void submit([_]) {
if (editingController.text.isNotEmpty) {
hasData.value = true;
arcCtr

View File

@@ -49,7 +49,7 @@ class _MemberSearchPageState extends State<MemberSearchPage> {
onPressed: _controller.onClear,
),
),
onSubmitted: (value) => _controller.submit(),
onSubmitted: _controller.submit,
onChanged: (value) {
if (value.isEmpty) {
_controller.hasData.value = false;