optimizations
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user