Unify startup loader and thin places query
Build and deploy Flutter Web / build (push) Successful in 4m10s
Build and deploy Flutter Web / build (push) Successful in 4m10s
This commit is contained in:
@@ -845,7 +845,48 @@ class _MapLoading extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return const Scaffold(body: Center(child: CircularProgressIndicator()));
|
||||
final tokens = context.mapflowTokens;
|
||||
return Scaffold(
|
||||
backgroundColor: tokens.darkSurface,
|
||||
body: Center(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
ClipRRect(
|
||||
borderRadius: BorderRadius.circular(tokens.panelRadius),
|
||||
child: Image.network(
|
||||
'icons/Icon-192.png',
|
||||
width: 64,
|
||||
height: 64,
|
||||
errorBuilder: (_, _, _) => Icon(
|
||||
Icons.map_outlined,
|
||||
color: tokens.voiceAccent,
|
||||
size: 56,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 18),
|
||||
Text(
|
||||
'MapFlow',
|
||||
style: Theme.of(context).textTheme.titleLarge?.copyWith(
|
||||
color: tokens.onDark,
|
||||
fontWeight: FontWeight.w900,
|
||||
letterSpacing: 0,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 18),
|
||||
SizedBox(
|
||||
width: 96,
|
||||
child: LinearProgressIndicator(
|
||||
minHeight: 3,
|
||||
color: tokens.voiceAccent,
|
||||
backgroundColor: tokens.onDark.withValues(alpha: 0.12),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user