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

@@ -57,10 +57,13 @@ class _SearchPageState extends State<SearchPage> {
trending,
_buildHistory,
] else
SliverCrossAxisGroup(
slivers: [trending, _buildHistory],
SliverCrossAxisGroup(slivers: [trending, _buildHistory]),
SliverPadding(
padding: .only(
bottom:
padding.bottom + MediaQuery.viewInsetsOf(context).bottom,
),
SliverPadding(padding: .only(bottom: padding.bottom)),
),
],
),
),
@@ -109,7 +112,7 @@ class _SearchPageState extends State<SearchPage> {
hintText: _searchController.hintText ?? '搜索',
border: InputBorder.none,
),
onSubmitted: (value) => _searchController.submit(),
onSubmitted: _searchController.submit,
),
);