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

@@ -38,9 +38,12 @@ class _ReplySearchChildPageState extends State<ReplySearchChildPage>
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
SliverPadding(
padding: EdgeInsets.only(
padding: .only(
top: 7,
bottom: MediaQuery.viewPaddingOf(context).bottom + 100,
bottom:
MediaQuery.viewPaddingOf(context).bottom +
MediaQuery.viewInsetsOf(context).bottom +
100,
),
sliver: Obx(() => _buildBody(_controller.loadingState.value)),
),

View File

@@ -42,7 +42,7 @@ class ReplySearchController extends GetxController
submit();
}
void submit() {
void submit([_]) {
videoCtr
..scrollController.jumpToTop()
..onReload();

View File

@@ -62,7 +62,7 @@ class _ReplySearchPageState extends State<ReplySearchPage> {
onPressed: _controller.onClear,
),
),
onSubmitted: (value) => _controller.submit(),
onSubmitted: _controller.submit,
),
),
body: ViewSafeArea(