optimizations

This commit is contained in:
mertalev
2025-07-30 19:30:42 -04:00
parent 196f2a72f4
commit 6cea779b2d
23 changed files with 7004 additions and 329 deletions
@@ -22,11 +22,7 @@ final _features = [
icon: Icons.timeline_rounded,
onTap: (ctx, _) => ctx.pushRoute(const TabShellRoute()),
),
_Feature(
name: 'Map',
icon: Icons.map_outlined,
onTap: (ctx, _) => ctx.pushRoute(const DriftMapRoute()),
),
_Feature(name: 'Map', icon: Icons.map_outlined, onTap: (ctx, _) => ctx.pushRoute(const DriftMapRoute())),
_Feature(
name: 'Selection Mode Timeline',
icon: Icons.developer_mode_rounded,
@@ -8,9 +8,6 @@ class DriftMapPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const Scaffold(
extendBodyBehindAppBar: true,
body: DriftMap(),
);
return const Scaffold(extendBodyBehindAppBar: true, body: DriftMap());
}
}
@@ -94,7 +94,11 @@ class _Map extends StatelessWidget {
width: context.width,
// TODO: migrate to DriftMapRoute after merging #19898
child: MapThumbnail(
onTap: (_, __) => context.pushRoute(MapRoute(initialLocation: currentLocation)),
onTap: (_, __) => context.pushRoute(
const DriftMapRoute(
// initialLocation: currentLocation
),
),
zoom: 8,
centre: currentLocation ?? const LatLng(21.44950, -157.91959),
showAttribution: false,