Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement #169

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example/ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
1 change: 1 addition & 0 deletions example/ios/Flutter/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
10 changes: 6 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'package:google_maps_place_picker/google_maps_place_picker.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'package:google_maps_place_picker/google_maps_place_picker.dart';

// Your api key storage.
import 'keys.dart';
Expand Down Expand Up @@ -45,7 +45,7 @@ class MyApp extends StatelessWidget {
}

class HomePage extends StatefulWidget {
const HomePage({Key key}) : super(key: key);
const HomePage({Key? key}) : super(key: key);

static final kInitialPosition = LatLng(-33.8567844, 151.213108);

Expand All @@ -54,7 +54,7 @@ class HomePage extends StatefulWidget {
}

class _HomePageState extends State<HomePage> {
PickResult selectedPlace;
PickResult? selectedPlace;

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -127,7 +127,9 @@ class _HomePageState extends State<HomePage> {
);
},
),
selectedPlace == null ? Container() : Text(selectedPlace.formattedAddress ?? ""),
selectedPlace == null
? Container()
: Text(selectedPlace?.formattedAddress ?? ""),
],
),
));
Expand Down
Loading