💄 Video player optimized

This commit is contained in:
2025-08-01 20:36:39 +08:00
parent 84b1d6a346
commit b39e2e2d64
24 changed files with 500 additions and 299 deletions

View File

@@ -53,13 +53,13 @@ class PostEditScreen extends HookConsumerWidget {
data: (post) => PostComposeScreen(originalPost: post),
loading:
() => AppScaffold(
noBackground: false,
isNoBackground: false,
appBar: AppBar(leading: const PageBackButton()),
body: const Center(child: CircularProgressIndicator()),
),
error:
(e, _) => AppScaffold(
noBackground: false,
isNoBackground: false,
appBar: AppBar(leading: const PageBackButton()),
body: Text('Error: $e', textAlign: TextAlign.center),
),
@@ -287,7 +287,7 @@ class PostComposeScreen extends HookConsumerWidget {
}
},
child: AppScaffold(
noBackground: false,
isNoBackground: false,
appBar: AppBar(
leading: const PageBackButton(),
actions: [

View File

@@ -352,7 +352,7 @@ class ArticleComposeScreen extends HookConsumerWidget {
}
},
child: AppScaffold(
noBackground: false,
isNoBackground: false,
appBar: AppBar(
leading: const PageBackButton(),
title: ValueListenableBuilder<TextEditingValue>(

View File

@@ -54,7 +54,7 @@ class PostDetailScreen extends HookConsumerWidget {
final user = ref.watch(userInfoProvider);
return AppScaffold(
noBackground: false,
isNoBackground: false,
appBar: AppBar(title: const Text('Post')),
body: postState.when(
data: (post) {

View File

@@ -110,7 +110,7 @@ class _PostSearchScreenState extends ConsumerState<PostSearchScreen> {
@override
Widget build(BuildContext context) {
return AppScaffold(
noBackground: false,
isNoBackground: false,
appBar: AppBar(
title: TextField(
controller: _searchController,

View File

@@ -259,7 +259,7 @@ class PublisherProfileScreen extends HookConsumerWidget {
return publisher.when(
data:
(data) => AppScaffold(
noBackground: false,
isNoBackground: false,
appBar:
isWideScreen(context)
? AppBar(
@@ -389,13 +389,13 @@ class PublisherProfileScreen extends HookConsumerWidget {
),
error:
(error, stackTrace) => AppScaffold(
noBackground: false,
isNoBackground: false,
appBar: AppBar(leading: const PageBackButton()),
body: Center(child: Text(error.toString())),
),
loading:
() => AppScaffold(
noBackground: false,
isNoBackground: false,
appBar: AppBar(leading: const PageBackButton()),
body: Center(child: CircularProgressIndicator()),
),