-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c571c56
commit 00bb4ae
Showing
13 changed files
with
59 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
example/lib/screens/main/pages/map/state/map_provider.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,11 @@ | ||
import 'dart:async'; | ||
|
||
import 'package:flutter/foundation.dart'; | ||
import 'package:flutter_map/flutter_map.dart'; | ||
|
||
import '../map_view.dart'; | ||
|
||
class MapProvider extends ChangeNotifier { | ||
UserLocationFollowState _followState = UserLocationFollowState.standard; | ||
UserLocationFollowState get followState => _followState; | ||
set followState(UserLocationFollowState newState) { | ||
_followState = newState; | ||
notifyListeners(); | ||
} | ||
|
||
MapController _mapController = MapController(); | ||
MapController get mapController => _mapController; | ||
set mapController(MapController newController) { | ||
_mapController = newController; | ||
notifyListeners(); | ||
} | ||
|
||
// ignore: close_sinks | ||
final _trackLocationStreamController = StreamController<double?>()..add(16); | ||
late final trackLocationStream = | ||
_trackLocationStreamController.stream.asBroadcastStream(); | ||
void trackLocation({required bool navigation}) => | ||
_trackLocationStreamController.add(navigation ? 18 : 16); | ||
|
||
// ignore: close_sinks | ||
final _trackHeadingStreamController = StreamController<void>()..add(null); | ||
late final trackHeadingStream = | ||
_trackHeadingStreamController.stream.asBroadcastStream(); | ||
void trackHeading() => _trackHeadingStreamController.add(null); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
example/lib/screens/main/pages/region_selection/components/region_shape.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters