Skip to content

Commit

Permalink
Remove deprecated classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
xclud committed Feb 7, 2024
1 parent 81654b7 commit e731e1c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 167 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [2.0.0]
## [2.0.0+1]

* Dependencies updated.

Expand Down
2 changes: 0 additions & 2 deletions lib/map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import 'dart:math';
import 'package:latlng/latlng.dart';
import 'package:flutter/widgets.dart';

part 'src/map.dart';
part 'src/layout_builder.dart';
part 'src/map_layout.dart';
part 'src/transformer.dart';
part 'src/controller.dart';
Expand Down
9 changes: 3 additions & 6 deletions lib/src/layers/tile_layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ class _TileLayerState extends State<TileLayer> {
@override
void didChangeDependencies() {
final map = context.findAncestorWidgetOfExactType<MapLayout>();
final mapBuilder =
// ignore: deprecated_member_use_from_same_package
context.findAncestorWidgetOfExactType<MapLayoutBuilder>();

if (map == null && mapBuilder == null) {
if (map == null) {
throw Exception('TileLayer must be used inside a MapLayout.');
}

_tileSize = map?.tileSize ?? mapBuilder!.tileSize;
_controller = map?.controller ?? mapBuilder!.controller;
_tileSize = map.tileSize;
_controller = map.controller;

super.didChangeDependencies();
}
Expand Down
52 changes: 0 additions & 52 deletions lib/src/layout_builder.dart

This file was deleted.

105 changes: 0 additions & 105 deletions lib/src/map.dart

This file was deleted.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: map
description: Geographical Map widget for flutter supporting different projections including EPSG4326/Mercator/WGS1984.
version: 2.0.0
version: 2.0.0+1
homepage: https://pwa.ir
repository: https://github.com/xclud/flutter_map

Expand Down

0 comments on commit e731e1c

Please sign in to comment.