Skip to content

Commit 9f1b147

Browse files
authored
feat: maplibre: ^0.3.0, very_good_analysis: ^10.0.0, connectivity_plus: ^7.0.0 (#99)
1 parent a7e4341 commit 9f1b147

File tree

33 files changed

+50
-49
lines changed

33 files changed

+50
-49
lines changed

analysis_options.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ linter:
55
flutter_style_todos: false
66
cascade_invocations: false
77
sort_pub_dependencies: false
8-
deprecated_member_use_from_same_package: false
8+
deprecated_member_use_from_same_package: false
9+
discarded_futures: false

example/lib/flutter_map_cache/page.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ class _FlutterMapCachePageState extends State<FlutterMapCachePage> {
8585
),
8686
if (!kIsWeb)
8787
FutureBuilder<Directory>(
88-
// future does not get discarded
89-
// ignore: discarded_futures
9088
future: getTemporaryDirectory(), // not available on web
9189
builder: (context, snapshot) {
9290
if (snapshot.hasData) {

example/lib/flutter_map_maplibre/page2.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class _FlutterMapMapLibrePageState extends State<FlutterMapMapLibrePage> {
2626
),
2727
body: MapLibreMap(
2828
onMapCreated: (controller) => _controller = controller,
29-
options: MapOptions(
30-
initCenter: Position(0, 0),
29+
options: const MapOptions(
30+
initCenter: Geographic(lon: 0, lat: 0),
3131
initZoom: 3,
3232
maxPitch: 0, // flutter_map doesn't support pitch, disable it here
3333
initStyle:

example/lib/flutter_map_pmtiles/page.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ const String tileSource =
1818
'https://raw.githubusercontent.com/protomaps/PMTiles/main/spec/v3/stamen_toner(raster)CC-BY%2BODbL_z3.pmtiles';
1919

2020
class _FlutterMapPmTilesPageState extends State<FlutterMapPmTilesPage> {
21-
final _futureTileProvider = PmTilesTileProvider.fromSource(tileSource);
21+
final Future<PmTilesTileProvider> _futureTileProvider =
22+
PmTilesTileProvider.fromSource(tileSource);
2223

2324
@override
2425
Widget build(BuildContext context) {

example/lib/vector_map_tiles_mbtiles/page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class _VectorMapTilesMbTilesPageState extends State<VectorMapTilesMbTilesPage> {
1919
final Future<MbTiles> _futureMbtiles = _initMbTiles();
2020
MbTiles? _mbtiles;
2121

22-
final _theme = vtr.ProvidedThemes.lightTheme();
22+
final vtr.Theme _theme = vtr.ProvidedThemes.lightTheme();
2323

2424
static Future<MbTiles> _initMbTiles() async {
2525
// This function copies an asset file from the asset bundle to the temporary

example/lib/vector_map_tiles_pmtiles/page.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class VectorMapTilesPmTilesPage extends StatelessWidget {
2424
logger: kDebugMode ? const vtr.Logger.console() : null,
2525
);
2626

27-
final _futureTileProvider = PmTilesVectorTileProvider.fromSource(tileSource);
27+
final Future<PmTilesVectorTileProvider> _futureTileProvider =
28+
PmTilesVectorTileProvider.fromSource(tileSource);
2829

2930
@override
3031
Widget build(BuildContext context) {

example/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
sdk: flutter
1616
latlong2: ^0.9.0
1717
url_launcher: ^6.2.4
18-
connectivity_plus: ^6.0.0
18+
connectivity_plus: ^7.0.0
1919
path_provider: ^2.0.15
2020
dio: ^5.2.0+1
2121
dio_cache_interceptor: ^4.0.0
@@ -26,7 +26,7 @@ dependencies:
2626
vector_map_tiles: ^9.0.0-beta.8
2727
vector_tile_renderer: ^6.0.0
2828
mbtiles: ^0.4.0
29-
maplibre: ^0.2.0
29+
maplibre: ^0.3.0
3030

3131
flutter_map_cache:
3232
path: ../flutter_map_cache
@@ -44,7 +44,7 @@ dependencies:
4444
path: ../vector_map_tiles_pmtiles
4545

4646
dev_dependencies:
47-
very_good_analysis: ^7.0.0
47+
very_good_analysis: ^10.0.0
4848

4949
flutter:
5050
uses-material-design: true

flutter_map_cache/lib/src/cached_image_provider.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class CachedImageProvider extends ImageProvider<CachedImageProvider> {
5252
final chunkEvents = StreamController<ImageChunkEvent>();
5353

5454
return MultiFrameImageStreamCompleter(
55-
// ignore: discarded_futures, not actually but the lint thinks so
5655
codec: loadAsync(key, chunkEvents, decode),
5756
chunkEvents: chunkEvents.stream,
5857
scale: 1,

flutter_map_cache/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ dev_dependencies:
3333
http_mock_adapter: ^0.6.1
3434
latlong2: ^0.9.0
3535
test: ^1.24.9
36-
very_good_analysis: ^7.0.0
36+
very_good_analysis: ^10.0.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import 'dart:math';
22

33
/// Saved calculation
4-
const deg2Rad = pi / 180.0;
4+
const double deg2Rad = pi / 180.0;

0 commit comments

Comments
 (0)