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

@@ -492,7 +492,7 @@ class DesignRequestDetailPage extends ConsumerWidget {
],
),
),
loading: () => const const CustomLoadingIndicator(),
loading: () => const CustomLoadingIndicator(),
error: (error, stack) => Center(
child: Padding(
padding: const EdgeInsets.all(40),
@@ -558,7 +558,7 @@ class DesignRequestDetailPage extends ConsumerWidget {
fit: BoxFit.cover,
placeholder: (context, url) => Container(
color: colorScheme.surfaceContainerHighest,
child: const Center(
child: Center(
child: CustomLoadingIndicator(color: colorScheme.primary, size: 20),
),
),

View File

@@ -86,7 +86,7 @@ class ModelHouseDetailPage extends ConsumerWidget {
],
),
),
loading: () => const const CustomLoadingIndicator(),
loading: () => const CustomLoadingIndicator(),
error: (error, stack) => Center(
child: Padding(
padding: const EdgeInsets.all(40),
@@ -408,7 +408,7 @@ class ModelHouseDetailPage extends ConsumerWidget {
fit: BoxFit.cover,
placeholder: (context, url) => Container(
color: colorScheme.surfaceContainerHighest,
child: const Center(
child: Center(
child: CustomLoadingIndicator(color: colorScheme.primary, size: 20),
),
),

View File

@@ -215,7 +215,7 @@ class _LibraryTab extends ConsumerWidget {
),
);
},
loading: () => const const CustomLoadingIndicator(),
loading: () => const CustomLoadingIndicator(),
error: (error, stack) => Center(
child: Padding(
padding: const EdgeInsets.all(40),
@@ -287,7 +287,7 @@ class _LibraryCard 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,
@@ -424,7 +424,7 @@ class _DesignRequestsTab extends ConsumerWidget {
),
);
},
loading: () => const const CustomLoadingIndicator(),
loading: () => const CustomLoadingIndicator(),
error: (error, stack) => Center(
child: Padding(
padding: const EdgeInsets.all(40),