Skip to content

Commit

Permalink
fix: Fixed a bug that did not support location changes in the yaml of…
Browse files Browse the repository at this point in the history
… Location.
  • Loading branch information
mathrunet committed Jul 18, 2023
1 parent 563573d commit c25d2c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/katana_cli/lib/action/app/location.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AppLocationCliAction extends CliCommand with CliActionMixin {

@override
bool checkEnabled(ExecContext context) {
final value = context.yaml.getAsMap("app").getAsMap("location");
final value = context.yaml.getAsMap("location");
final enabled = value.get("enable", false);
if (!enabled) {
return false;
Expand All @@ -36,7 +36,7 @@ class AppLocationCliAction extends CliCommand with CliActionMixin {
Future<void> exec(ExecContext context) async {
final bin = context.yaml.getAsMap("bin");
final flutter = bin.get("flutter", "flutter");
final location = context.yaml.getAsMap("app").getAsMap("location");
final location = context.yaml.getAsMap("location");
final enableBackground = location.get("enable_background", false);
final googleMap = location.getAsMap("google_map");
final enableGoogleMap = googleMap.get("enable", false);
Expand Down

0 comments on commit c25d2c9

Please sign in to comment.