Skip to content

Commit

Permalink
Fix #75
Browse files Browse the repository at this point in the history
  • Loading branch information
7h30n3 committed Jun 3, 2022
1 parent 142cede commit 4dd3841
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/widgets/map_overlay/map_overlay.dart
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,13 @@ class _MapOverlayState extends State<MapOverlay> with TickerProviderStateMixin {
Column(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Selector<UserLocationProvider, bool>(
selector: (_, p1) => p1.isFollowingLocation,
builder: (context, isFollowingLocation, child) => LocationButton(
LocationButton(
activeColor: Theme.of(context).colorScheme.primary,
activeIconColor: Theme.of(context).colorScheme.onPrimary,
color: Theme.of(context).colorScheme.secondary,
iconColor: Theme.of(context).colorScheme.onSecondary,
active: isFollowingLocation,
active: context.select<UserLocationProvider, bool>((provider) => provider.isFollowingLocation),
onPressed: _toggleLocationFollowing
)
),
SizedBox (
height: widget.buttonSpacing
Expand Down

0 comments on commit 4dd3841

Please sign in to comment.