Skip to content

Commit cffdeed

Browse files
authored
feat: flutter 3.27, very_good_analysis ^7.0.0, maplibre ^0.2.0 (#72)
1 parent ba8b290 commit cffdeed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+51
-48
lines changed

analysis_options.yaml

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

example/analysis_options.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ include: ../analysis_options.yaml
22

33
linter:
44
rules:
5-
public_member_api_docs: false
5+
public_member_api_docs: false
6+
deprecated_member_use_from_same_package: true

example/lib/flutter_map_cache/page.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class _FlutterMapCachePageState extends State<FlutterMapCachePage> {
8585
),
8686
if (!kIsWeb)
8787
FutureBuilder<Directory>(
88+
// future does not get discarded
8889
// ignore: discarded_futures
8990
future: getTemporaryDirectory(), // not available on web
9091
builder: (context, snapshot) {

example/lib/flutter_map_maplibre/page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class _MapLibreFlutterMapPageState extends State<MapLibreFlutterMapPage> {
8686
LatLng(5, -10),
8787
LatLng(10, -15),
8888
],
89-
color: Colors.pink.withOpacity(0.8),
89+
color: Colors.pink.withValues(alpha: 0.8),
9090
),
9191
],
9292
),

example/lib/flutter_map_maplibre/page2.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class _FlutterMapMapLibrePageState extends State<FlutterMapMapLibrePage> {
8686
LatLng(5, -10),
8787
LatLng(10, -15),
8888
],
89-
color: Colors.pink.withOpacity(0.8),
89+
color: Colors.pink.withValues(alpha: 0.8),
9090
),
9191
],
9292
),

example/lib/main.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import 'package:flutter_map_plugins_example/flutter_map_mbtiles/page.dart';
1010
import 'package:flutter_map_plugins_example/flutter_map_pmtiles/page.dart';
1111
import 'package:flutter_map_plugins_example/vector_map_tiles_mbtiles/page.dart';
1212
import 'package:flutter_map_plugins_example/vector_map_tiles_pmtiles/page.dart';
13+
import 'package:flutter_web_plugins/url_strategy.dart';
1314
import 'package:url_launcher/url_launcher_string.dart';
14-
import 'package:url_strategy/url_strategy.dart';
1515

1616
void main() {
17-
setPathUrlStrategy();
17+
usePathUrlStrategy();
1818
runApp(const MyApp());
1919
}
2020

@@ -108,7 +108,7 @@ class SelectionPage extends StatelessWidget {
108108
actions: [githubButton],
109109
),
110110
body: ColoredBox(
111-
color: Colors.blueGrey.withOpacity(0.3),
111+
color: Colors.blueGrey.withValues(alpha: 0.3),
112112
child: Padding(
113113
padding: const EdgeInsets.all(8),
114114
child: GridView.count(

example/lib/vector_map_tiles_pmtiles/page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class VectorMapTilesPmTilesPage extends StatelessWidget {
2020
///
2121
/// Note: Styles from Mapbox, OpenMapTiles and others and not compatible
2222
/// with Protomaps styles.
23-
final vtr.Theme mapTheme = ProtomapsThemes.lightV4(
23+
final vtr.Theme mapTheme = ProtomapsThemes.lightV3(
2424
logger: kDebugMode ? const vtr.Logger.console() : null,
2525
);
2626

example/pubspec.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ dependencies:
1010
flutter:
1111
sdk: flutter
1212
flutter_map: ^7.0.0
13+
flutter_web_plugins:
14+
sdk: flutter
1315
latlong2: ^0.9.0
1416
url_launcher: ^6.2.4
15-
url_strategy: ^0.3.0
1617
connectivity_plus: ^6.0.0
1718
path_provider: ^2.0.15
1819
dio: ^5.2.0+1
@@ -24,7 +25,7 @@ dependencies:
2425
vector_map_tiles: ^8.0.0
2526
vector_tile_renderer: ^5.2.0
2627
mbtiles: ^0.4.0
27-
maplibre: ^0.1.0
28+
maplibre: ^0.2.0
2829

2930
flutter_map_cache:
3031
path: ../flutter_map_cache
@@ -42,7 +43,7 @@ dependencies:
4243
path: ../vector_map_tiles_pmtiles
4344

4445
dev_dependencies:
45-
very_good_analysis: ^6.0.0
46+
very_good_analysis: ^7.0.0
4647

4748
flutter:
4849
uses-material-design: true

flutter_map_cache/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ dev_dependencies:
3030
http_mock_adapter: ^0.6.1
3131
latlong2: ^0.9.0
3232
test: ^1.24.9
33-
very_good_analysis: ^6.0.0
33+
very_good_analysis: ^7.0.0

flutter_map_cache/test/cached_image_provider_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import 'package:dio/dio.dart';
44
import 'package:flutter_map_cache/flutter_map_cache.dart';
55
import 'package:test/test.dart';
66

7-
// ignore_for_file: deprecated_member_use_from_same_package
8-
97
Future<void> main() async {
108
test('create new instance', () {
119
final dio = Dio();

0 commit comments

Comments
 (0)