mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 02:27:08 -04:00 
			
		
		
		
	* feat(mobile): drift map page * refactor: map query * perf: do not filter markers * fix: refresh timeline by key * chore: rename * remove ref listen and global key * clean code * remove locked and favorite * temporary change for stress test * optimizations * fix bottom sheet * cleaner bounds check * cleanup * feat: back button --------- Co-authored-by: wuzihao051119 <wuzihao051119@outlook.com> Co-authored-by: Alex <alex.tran1502@gmail.com>
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:auto_route/auto_route.dart';
 | |
| import 'package:flutter/material.dart';
 | |
| import 'package:immich_mobile/extensions/build_context_extensions.dart';
 | |
| import 'package:immich_mobile/presentation/widgets/map/map.widget.dart';
 | |
| import 'package:maplibre_gl/maplibre_gl.dart';
 | |
| 
 | |
| @RoutePage()
 | |
| class DriftMapPage extends StatelessWidget {
 | |
|   final LatLng? initialLocation;
 | |
| 
 | |
|   const DriftMapPage({super.key, this.initialLocation});
 | |
| 
 | |
|   @override
 | |
|   Widget build(BuildContext context) {
 | |
|     return Scaffold(
 | |
|       extendBodyBehindAppBar: true,
 | |
|       body: Stack(
 | |
|         children: [
 | |
|           DriftMap(initialLocation: initialLocation),
 | |
|           Positioned(
 | |
|             left: 16,
 | |
|             top: 60,
 | |
|             child: IconButton.filled(
 | |
|               color: Colors.white,
 | |
|               onPressed: () => context.pop(),
 | |
|               icon: const Icon(Icons.arrow_back_ios_new_rounded),
 | |
|               style: IconButton.styleFrom(
 | |
|                 shape: const CircleBorder(side: BorderSide(width: 1, color: Colors.black26)),
 | |
|                 padding: const EdgeInsets.all(8),
 | |
|                 backgroundColor: Colors.indigo.withValues(alpha: 0.7),
 | |
|               ),
 | |
|             ),
 | |
|           ),
 | |
|         ],
 | |
|       ),
 | |
|     );
 | |
|   }
 | |
| }
 |