mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-17 06:49:34 +00:00
chore: 优化进度条显示
This commit is contained in:
parent
03cec3f4b6
commit
d96995a863
27 changed files with 1229 additions and 1311 deletions
|
|
@ -20,7 +20,6 @@ import 'package:vaani/shared/extensions/model_conversions.dart';
|
|||
import 'package:vaani/shared/extensions/style.dart';
|
||||
import 'package:vaani/shared/icons/abs_icons.dart';
|
||||
import 'package:vaani/shared/utils/components.dart';
|
||||
import 'package:vaani/shared/widgets/custom_dropdown.dart';
|
||||
import 'package:vaani/shared/widgets/skeletons.dart';
|
||||
|
||||
class LibraryPage extends HookConsumerWidget {
|
||||
|
|
@ -83,21 +82,21 @@ class LibraryPage extends HookConsumerWidget {
|
|||
// ),
|
||||
const LibraryItemsSort(),
|
||||
IconButton(
|
||||
icon: Icon(Icons.next_plan),
|
||||
tooltip: '加载下一页', // Helpful tooltip for users
|
||||
onPressed: () => ref.read(libraryItemsProvider.notifier).loadMore(),
|
||||
),
|
||||
IconButton(
|
||||
icon: Icon(Icons.refresh),
|
||||
tooltip: '刷新', // Helpful tooltip for users
|
||||
onPressed: () => ref.read(libraryItemsProvider.notifier).refresh(),
|
||||
icon: Icon(Icons.bar_chart),
|
||||
tooltip: '统计',
|
||||
onPressed: () =>
|
||||
GoRouter.of(context).pushNamed(Routes.libraryStatistics.name),
|
||||
),
|
||||
// IconButton(
|
||||
// icon: Icon(Icons.refresh),
|
||||
// tooltip: '刷新', // Helpful tooltip for users
|
||||
// onPressed: () => ref.read(libraryItemsProvider.notifier).refresh(),
|
||||
// ),
|
||||
IconButton(
|
||||
icon: Icon(Icons.download),
|
||||
tooltip: S.of(context).bookDownloads, // Helpful tooltip for users
|
||||
onPressed: () {
|
||||
GoRouter.of(context).pushNamed(Routes.downloads.name);
|
||||
},
|
||||
onPressed: () =>
|
||||
GoRouter.of(context).pushNamed(Routes.downloads.name),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue