mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
improve ui
This commit is contained in:
@@ -248,7 +248,8 @@
|
||||
"No new version available": "没有新版本可用",
|
||||
"Export as pdf": "导出为pdf",
|
||||
"Export as epub": "导出为epub",
|
||||
"Aggregated Search": "聚合搜索"
|
||||
"Aggregated Search": "聚合搜索",
|
||||
"No search results found": "未找到搜索结果"
|
||||
},
|
||||
"zh_TW": {
|
||||
"Home": "首頁",
|
||||
@@ -499,6 +500,7 @@
|
||||
"No new version available": "沒有新版本可用",
|
||||
"Export as pdf": "匯出為pdf",
|
||||
"Export as epub": "匯出為epub",
|
||||
"Aggregated Search": "聚合搜索"
|
||||
"Aggregated Search": "聚合搜索",
|
||||
"No search results found": "未找到搜索結果"
|
||||
}
|
||||
}
|
@@ -5,6 +5,7 @@ import "package:venera/foundation/app.dart";
|
||||
import "package:venera/foundation/comic_source/comic_source.dart";
|
||||
import "package:venera/foundation/image_provider/cached_image.dart";
|
||||
import "package:venera/pages/search_result_page.dart";
|
||||
import "package:venera/utils/translations.dart";
|
||||
|
||||
import "comic_page.dart";
|
||||
|
||||
@@ -48,7 +49,7 @@ class _AggregatedSearchPageState extends State<AggregatedSearchPage> {
|
||||
delegate: SliverChildBuilderDelegate(
|
||||
(context, index) {
|
||||
final source = sources[index];
|
||||
return _SliverSearchResult(source: source, keyword: widget.keyword);
|
||||
return _SliverSearchResult(source: source, keyword: _keyword);
|
||||
},
|
||||
childCount: sources.length,
|
||||
),
|
||||
@@ -193,6 +194,22 @@ class _SliverSearchResultState extends State<_SliverSearchResult>
|
||||
}),
|
||||
),
|
||||
)
|
||||
else if (comics == null || comics!.isEmpty)
|
||||
SizedBox(
|
||||
height: _kComicHeight,
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
const Icon(Icons.error_outline),
|
||||
const SizedBox(width: 8),
|
||||
Text("No search results found".tl),
|
||||
],
|
||||
),
|
||||
const Spacer(),
|
||||
],
|
||||
).paddingHorizontal(16),
|
||||
)
|
||||
else
|
||||
SizedBox(
|
||||
height: _kComicHeight,
|
||||
|
Reference in New Issue
Block a user