Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: flutter 3.27, very_good_analysis ^7.0.0 #72

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ linter:
rules:
flutter_style_todos: false
cascade_invocations: false
sort_pub_dependencies: false
sort_pub_dependencies: false
deprecated_member_use_from_same_package: false
3 changes: 2 additions & 1 deletion example/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ include: ../analysis_options.yaml

linter:
rules:
public_member_api_docs: false
public_member_api_docs: false
deprecated_member_use_from_same_package: true
2 changes: 1 addition & 1 deletion example/lib/flutter_map_maplibre/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class _MapLibreFlutterMapPageState extends State<MapLibreFlutterMapPage> {
LatLng(5, -10),
LatLng(10, -15),
],
color: Colors.pink.withOpacity(0.8),
color: Colors.pink.withValues(alpha: 0.8),
),
],
),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/flutter_map_maplibre/page2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class _FlutterMapMapLibrePageState extends State<FlutterMapMapLibrePage> {
LatLng(5, -10),
LatLng(10, -15),
],
color: Colors.pink.withOpacity(0.8),
color: Colors.pink.withValues(alpha: 0.8),
),
],
),
Expand Down
6 changes: 3 additions & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import 'package:flutter_map_plugins_example/flutter_map_mbtiles/page.dart';
import 'package:flutter_map_plugins_example/flutter_map_pmtiles/page.dart';
import 'package:flutter_map_plugins_example/vector_map_tiles_mbtiles/page.dart';
import 'package:flutter_map_plugins_example/vector_map_tiles_pmtiles/page.dart';
import 'package:flutter_web_plugins/url_strategy.dart';
import 'package:url_launcher/url_launcher_string.dart';
import 'package:url_strategy/url_strategy.dart';

void main() {
setPathUrlStrategy();
usePathUrlStrategy();
runApp(const MyApp());
}

Expand Down Expand Up @@ -108,7 +108,7 @@ class SelectionPage extends StatelessWidget {
actions: [githubButton],
),
body: ColoredBox(
color: Colors.blueGrey.withOpacity(0.3),
color: Colors.blueGrey.withValues(alpha: 0.3),
child: Padding(
padding: const EdgeInsets.all(8),
child: GridView.count(
Expand Down
2 changes: 1 addition & 1 deletion example/lib/vector_map_tiles_pmtiles/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class VectorMapTilesPmTilesPage extends StatelessWidget {
///
/// Note: Styles from Mapbox, OpenMapTiles and others and not compatible
/// with Protomaps styles.
final vtr.Theme mapTheme = ProtomapsThemes.lightV4(
final vtr.Theme mapTheme = ProtomapsThemes.lightV3(
logger: kDebugMode ? const vtr.Logger.console() : null,
);

Expand Down
5 changes: 3 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ dependencies:
flutter:
sdk: flutter
flutter_map: ^7.0.0
flutter_web_plugins:
sdk: flutter
latlong2: ^0.9.0
url_launcher: ^6.2.4
url_strategy: ^0.3.0
connectivity_plus: ^6.0.0
path_provider: ^2.0.15
dio: ^5.2.0+1
Expand Down Expand Up @@ -42,7 +43,7 @@ dependencies:
path: ../vector_map_tiles_pmtiles

dev_dependencies:
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0

flutter:
uses-material-design: true
Expand Down
2 changes: 1 addition & 1 deletion flutter_map_cache/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ dev_dependencies:
http_mock_adapter: ^0.6.1
latlong2: ^0.9.0
test: ^1.24.9
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
1 change: 1 addition & 0 deletions flutter_map_cache/test/cached_tile_provider_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:flutter_map/flutter_map.dart';
import 'package:flutter_map_cache/flutter_map_cache.dart';
import 'package:test/test.dart';

// Keep the original format.
// ignore_for_file: deprecated_member_use_from_same_package

Future<void> main() async {
Expand Down
2 changes: 1 addition & 1 deletion flutter_map_compass/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ dev_dependencies:
sdk: flutter
latlong2: ^0.9.0
test: ^1.24.9
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
2 changes: 0 additions & 2 deletions flutter_map_compass/test/utils/test_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import 'package:flutter_map/flutter_map.dart';
import 'package:flutter_map_compass/flutter_map_compass.dart';
import 'package:latlong2/latlong.dart';

// ignore_for_file: diagnostic_describe_all_properties

class TestApp extends StatelessWidget {
const TestApp({
required this.mapController,
Expand Down
2 changes: 1 addition & 1 deletion flutter_map_maplibre/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
2 changes: 1 addition & 1 deletion flutter_map_mbtiles/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ dev_dependencies:
latlong2: ^0.9.0
mockito: ^5.4.4
test: ^1.24.9
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
2 changes: 1 addition & 1 deletion flutter_map_pmtiles/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ dev_dependencies:
mockito: ^5.4.4
build_runner: ^2.4.8
latlong2: ^0.9.0
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ environment:

dev_dependencies:
melos: ^6.0.0
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
2 changes: 1 addition & 1 deletion vector_map_tiles_mbtiles/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ dev_dependencies:
build_runner: ^2.4.8
latlong2: ^0.9.0
flutter_map: ^7.0.0
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
vector_tile_renderer: ^5.2.0
4 changes: 1 addition & 3 deletions vector_map_tiles_mbtiles/test/utils/test_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import 'package:vector_map_tiles/vector_map_tiles.dart';
import 'package:vector_map_tiles_mbtiles/vector_map_tiles_mbtiles.dart';
import 'package:vector_tile_renderer/vector_tile_renderer.dart';

// ignore_for_file: diagnostic_describe_all_properties

class TestApp extends StatelessWidget {
yclass TestApp extends StatelessWidget {
const TestApp({required this.mbTiles, super.key});
final MbTiles mbTiles;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:vector_map_tiles_pmtiles/src/themes/v3/_package.dart' as v3;
import 'package:vector_map_tiles_pmtiles/src/themes/v4/_package.dart' as v4;
import 'package:vector_tile_renderer/vector_tile_renderer.dart';

// Keep the original format.
// ignore_for_file: prefer_single_quotes, require_trailing_commas

/// Protomaps themes.
Expand Down
1 change: 1 addition & 0 deletions vector_map_tiles_pmtiles/lib/src/themes/v3/grayscale.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
part of '_package.dart';

// Keep the original format.
// ignore_for_file: prefer_single_quotes, require_trailing_commas

/// https://docs.protomaps.com/basemaps/themes#grayscale
Expand Down
1 change: 1 addition & 0 deletions vector_map_tiles_pmtiles/lib/src/themes/v3/light.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
part of '_package.dart';

// Keep the original format.
// ignore_for_file: prefer_single_quotes, require_trailing_commas

/// https://docs.protomaps.com/basemaps/themes#light
Expand Down
1 change: 1 addition & 0 deletions vector_map_tiles_pmtiles/lib/src/themes/v3/white.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
part of '_package.dart';

// Keep the original format.
// ignore_for_file: prefer_single_quotes, require_trailing_commas

/// https://docs.protomaps.com/basemaps/themes#white
Expand Down
1 change: 1 addition & 0 deletions vector_map_tiles_pmtiles/lib/src/themes/v4/_package.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Keep the original format.
// ignore_for_file: prefer_single_quotes, require_trailing_commas

part 'black.dart';
Expand Down
1 change: 1 addition & 0 deletions vector_map_tiles_pmtiles/lib/src/themes/v4/black.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
part of '_package.dart';

// Keep the original format.
// ignore_for_file: prefer_single_quotes, require_trailing_commas

/// https://docs.protomaps.com/basemaps/themes#black
Expand Down
1 change: 1 addition & 0 deletions vector_map_tiles_pmtiles/lib/src/themes/v4/dark.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
part of '_package.dart';

// Keep the original format.
// ignore_for_file: prefer_single_quotes, require_trailing_commas

/// https://docs.protomaps.com/basemaps/themes#dark
Expand Down
1 change: 1 addition & 0 deletions vector_map_tiles_pmtiles/lib/src/themes/v4/grayscale.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
part of '_package.dart';

// Keep the original format.
// ignore_for_file: prefer_single_quotes, require_trailing_commas

/// https://docs.protomaps.com/basemaps/themes#grayscale
Expand Down
1 change: 1 addition & 0 deletions vector_map_tiles_pmtiles/lib/src/themes/v4/light.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
part of '_package.dart';

// Keep the original format.
// ignore_for_file: prefer_single_quotes, require_trailing_commas

/// https://docs.protomaps.com/basemaps/themes#light
Expand Down
1 change: 1 addition & 0 deletions vector_map_tiles_pmtiles/lib/src/themes/v4/white.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
part of '_package.dart';

// Keep the original format.
// ignore_for_file: prefer_single_quotes, require_trailing_commas

/// https://docs.protomaps.com/basemaps/themes#white
Expand Down
2 changes: 1 addition & 1 deletion vector_map_tiles_pmtiles/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ dev_dependencies:
latlong2: ^0.9.0
mockito: ^5.4.4
test: ^1.24.9
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
Loading