Shuffle post

This commit is contained in:
2025-08-22 01:41:25 +08:00
parent b4f2bb803a
commit bab602d98b
7 changed files with 70 additions and 7 deletions

View File

@@ -200,6 +200,18 @@ class ExploreScreen extends HookConsumerWidget {
context.pushNamed('postTags');
},
),
PopupMenuItem(
child: Row(
children: [
const Icon(Symbols.shuffle),
const Gap(12),
Text('postShuffle').tr(),
],
),
onTap: () {
context.pushNamed('postShuffle');
},
),
PopupMenuItem(
child: Row(
children: [

View File

@@ -145,7 +145,7 @@ class PostCategoriesListScreen extends ConsumerWidget {
final categoriesState = ref.watch(postCategoriesNotifierProvider);
return AppScaffold(
appBar: AppBar(title: const Text('Categories')),
appBar: AppBar(title: const Text('categories').tr()),
body: categoriesState.when(
data: (data) {
if (data.items.isEmpty) {
@@ -197,7 +197,7 @@ class PostTagsListScreen extends ConsumerWidget {
final tagsState = ref.watch(postTagsNotifierProvider);
return AppScaffold(
appBar: AppBar(title: const Text('Tags')),
appBar: AppBar(title: const Text('tags').tr()),
body: tagsState.when(
data: (data) {
if (data.items.isEmpty) {