This commit is contained in:
Phuoc Nguyen
2025-12-03 09:04:35 +07:00
parent 19d9a3dc2d
commit 9fb4ba621b
22 changed files with 116 additions and 31 deletions

View File

@@ -61,7 +61,7 @@ class _NewsDetailPageState extends ConsumerState<NewsDetailPage> {
}
return _buildContent(context, article);
},
loading: () => const const CustomLoadingIndicator(),
loading: () => const CustomLoadingIndicator(),
error: (error, stack) => _buildErrorState(context, error.toString()),
),
);
@@ -127,7 +127,7 @@ class _NewsDetailPageState extends ConsumerState<NewsDetailPage> {
placeholder: (context, url) => Container(
height: 250,
color: colorScheme.surfaceContainerHighest,
child: const const CustomLoadingIndicator(),
child: const CustomLoadingIndicator(),
),
errorWidget: (context, url, error) => Container(
height: 250,

View File

@@ -66,7 +66,7 @@ class FeaturedNewsCard extends StatelessWidget {
placeholder: (context, url) => Container(
height: 200,
color: colorScheme.surfaceContainerHighest,
child: const const CustomLoadingIndicator(),
child: const CustomLoadingIndicator(),
),
errorWidget: (context, url, error) => Container(
height: 200,

View File

@@ -58,7 +58,7 @@ class NewsCard extends StatelessWidget {
width: 80,
height: 80,
color: colorScheme.surfaceContainerHighest,
child: const Center(
child: Center(
child: SizedBox(
width: 20,
height: 20,

View File

@@ -57,7 +57,7 @@ class RelatedArticleCard extends StatelessWidget {
width: 60,
height: 60,
color: colorScheme.surfaceContainerHighest,
child: const Center(
child: Center(
child: SizedBox(
width: 16,
height: 16,