Fix some gesture conflicts

This commit is contained in:
LiuliFox
2025-10-20 15:43:48 +08:00
parent 3d194d7f6a
commit 75c2a3a417
5 changed files with 43 additions and 4 deletions

View File

@@ -170,6 +170,7 @@ class _SliverSearchResultState extends State<_SliverSearchResult>
text: widget.keyword,
sourceKey: widget.source.key,
),
iosFullScreenGesture: false,
);
},
child: Column(

View File

@@ -874,7 +874,10 @@ class _ImageFavoritesState extends State<ImageFavorites> {
child: InkWell(
borderRadius: BorderRadius.circular(8),
onTap: () {
context.to(() => const ImageFavoritesPage());
context.to(
() => const ImageFavoritesPage(),
iosFullScreenGesture: false,
);
},
child: Column(
mainAxisSize: MainAxisSize.min,
@@ -993,7 +996,10 @@ class _ImageFavoritesState extends State<ImageFavorites> {
maxCount: maxCount,
enableTranslation: displayType != 2,
onTap: (text) {
context.to(() => ImageFavoritesPage(initialKeyword: text));
context.to(
() => ImageFavoritesPage(initialKeyword: text),
iosFullScreenGesture: false,
);
},
);
}).toList(),

View File

@@ -49,7 +49,10 @@ class _SearchPageState extends State<SearchPage> {
void search([String? text]) {
if (aggregatedSearch) {
context
.to(() => AggregatedSearchPage(keyword: text ?? controller.text))
.to(
() => AggregatedSearchPage(keyword: text ?? controller.text),
iosFullScreenGesture: false,
)
.then((_) => update());
} else {
context
@@ -59,6 +62,7 @@ class _SearchPageState extends State<SearchPage> {
sourceKey: searchTarget,
options: options,
),
iosFullScreenGesture: false,
)
.then((_) => update());
}