Unify startup loader and thin places query
Build and deploy Flutter Web / build (push) Successful in 4m10s

This commit is contained in:
Ruslan Bakiev
2026-06-22 13:28:09 +07:00
parent 60f4844a4a
commit 3b77899d3e
10 changed files with 177 additions and 718 deletions
@@ -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),
),
),
],
),
),
);
}
}