Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Y0ngg4n committed Nov 7, 2021
1 parent a1e076d commit 2115f16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions lib/map/poster/add_poster.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AddPoster extends StatefulWidget {
required this.centerLocation,
required this.campaignTags,
required this.apiToken,
this.preset
this.preset,
required this.placeMarkerByHand
}) : super(key: key);

Expand All @@ -59,11 +59,6 @@ class _AddPosterState extends State<AddPoster> {
selectedEnvironmentTypes = widget.preset!.posterTagsLists.posterEnvironment;
selectedOtherTypes = widget.preset!.posterTagsLists.posterOther;
}
SharedPreferences.getInstance().then((value) => setState(() {
prefs = value;
placeMarkerByHand = (prefs.get(SharedPrefsSlugs.placeMarkerByHand) ??
placeMarkerByHand) as bool;
}));
}

@override
Expand Down
2 changes: 1 addition & 1 deletion lib/map/poster_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ class PosterMapViewState extends State<PosterMapView> {
widget.posterInDistance.posterModels.add(poster);
lastPosterModels.add(poster);
refresh();
},
}, placeMarkerByHand: placeMarkerByHand,
)));
}

Expand Down

0 comments on commit 2115f16

Please sign in to comment.