Skip to content

Commit f880e0d

Browse files
v7.0.2: Minor bug fixes and improvements (JaffaKetchup#94)
* Minor bug fixes * Built Example Applications --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Former-commit-id: a92d589b8a691ec6bf55be90901d426df0e7a925 [formerly e6e00fd] Former-commit-id: e1b7a6366214e5c7022429771b90693658e1edd1
1 parent 8752c9b commit f880e0d

File tree

5 files changed

+19
-5
lines changed

5 files changed

+19
-5
lines changed

example/lib/screens/main/pages/downloader/components/map_view.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,16 @@ class _MapViewState extends State<MapView> {
120120
options: MapOptions(
121121
center: LatLng(51.509364, -0.128928),
122122
zoom: 9.2,
123+
maxZoom: 22,
124+
maxBounds: LatLngBounds.fromPoints([
125+
LatLng(-90, 180),
126+
LatLng(90, 180),
127+
LatLng(90, -180),
128+
LatLng(-90, -180),
129+
]),
123130
interactiveFlags:
124131
InteractiveFlag.all & ~InteractiveFlag.rotate,
132+
scrollWheelVelocity: 0.002,
125133
keepAlive: true,
126134
onMapReady: () {
127135
_updatePointLatLng();

example/lib/screens/main/pages/map/map_view.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ class _MapPageState extends State<MapPage> {
4242
options: MapOptions(
4343
center: LatLng(51.509364, -0.128928),
4444
zoom: 9.2,
45+
maxZoom: 22,
4546
maxBounds: LatLngBounds.fromPoints([
4647
LatLng(-90, 180),
4748
LatLng(90, 180),
4849
LatLng(90, -180),
4950
LatLng(-90, -180),
5051
]),
5152
interactiveFlags: InteractiveFlag.all & ~InteractiveFlag.rotate,
53+
scrollWheelVelocity: 0.002,
5254
keepAlive: true,
5355
),
5456
nonRotatedChildren: [
@@ -77,9 +79,9 @@ class _MapPageState extends State<MapPage> {
7779
),
7880
)
7981
: NetworkNoRetryTileProvider(),
80-
maxZoom: 20,
82+
maxZoom: 22,
8183
userAgentPackageName: 'dev.org.fmtc.example.app',
82-
keepBuffer: 5,
84+
panBuffer: 3,
8385
backgroundColor: const Color(0xFFaad3df),
8486
),
8587
],

example/pubspec.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
sdk: flutter
1717
flutter_foreground_task: ^3.9.0
1818
flutter_map: ^3.0.0
19-
flutter_map_tile_caching: ^7.0.0
19+
flutter_map_tile_caching:
2020
flutter_speed_dial: ^6.0.0
2121
fmtc_plus_background_downloading: ^7.0.0
2222
fmtc_plus_sharing: ^7.0.0
@@ -34,6 +34,10 @@ dependencies:
3434

3535
dev_dependencies: null
3636

37+
dependency_overrides:
38+
flutter_map_tile_caching:
39+
path: ../
40+
3741
flutter:
3842
uses-material-design: true
3943
assets:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
36aa9cfc1177500347ee72cd80f0cc73d4ef2869
1+
0d351229f8c8f32a2601298a0d1758376be26c45
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f2ec07ae5ab49d52f9cc49231a7ecb22514c9590
1+
226c119928e34f7e01d63633272c566bee44b205

0 commit comments

Comments
 (0)