-
-
Notifications
You must be signed in to change notification settings - Fork 897
Expand file tree
/
Copy pathantimeridian.dart
More file actions
34 lines (31 loc) · 1.01 KB
/
antimeridian.dart
File metadata and controls
34 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:flutter_map_example/misc/tile_providers.dart';
import 'package:flutter_map_example/widgets/drawer/menu_drawer.dart';
import 'package:latlong2/latlong.dart';
/// Testing if we can fling beyond the world. We can't, due to the constraint.
class AntimeridianPage extends StatelessWidget {
static const String route = '/antimeridian';
const AntimeridianPage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Antimeridian')),
drawer: const MenuDrawer(AntimeridianPage.route),
body: FlutterMap(
options: MapOptions(
initialZoom: 2,
cameraConstraint: CameraConstraint.contain(
bounds: LatLngBounds(
const LatLng(90, -180),
const LatLng(-90, 180),
),
),
),
children: [
openStreetMapTileLayer,
],
),
);
}
}