Skip to content
Open
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 .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"geolocator_apple","path":"/Users/hasankaraman/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/","native_build":true,"dependencies":[]},{"name":"google_maps_flutter_ios","path":"/Users/hasankaraman/.pub-cache/hosted/pub.dev/google_maps_flutter_ios-2.6.0/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_plugin_android_lifecycle","path":"/Users/hasankaraman/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.5/","native_build":true,"dependencies":[]},{"name":"geolocator_android","path":"/Users/hasankaraman/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1/","native_build":true,"dependencies":[]},{"name":"google_maps_flutter_android","path":"/Users/hasankaraman/.pub-cache/hosted/pub.dev/google_maps_flutter_android-2.8.0/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]}],"macos":[{"name":"geolocator_apple","path":"/Users/hasankaraman/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/","native_build":true,"dependencies":[]}],"linux":[],"windows":[{"name":"geolocator_windows","path":"/Users/hasankaraman/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/","native_build":true,"dependencies":[]}],"web":[{"name":"geolocator_web","path":"/Users/hasankaraman/.pub-cache/hosted/pub.dev/geolocator_web-4.1.1/","dependencies":[]},{"name":"google_maps_flutter_web","path":"/Users/hasankaraman/.pub-cache/hosted/pub.dev/google_maps_flutter_web-0.5.10/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"geolocator","dependencies":["geolocator_android","geolocator_apple","geolocator_web","geolocator_windows"]},{"name":"geolocator_android","dependencies":[]},{"name":"geolocator_apple","dependencies":[]},{"name":"geolocator_web","dependencies":[]},{"name":"geolocator_windows","dependencies":[]},{"name":"google_maps_flutter","dependencies":["google_maps_flutter_android","google_maps_flutter_ios","google_maps_flutter_web"]},{"name":"google_maps_flutter_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"google_maps_flutter_ios","dependencies":[]},{"name":"google_maps_flutter_web","dependencies":[]}],"date_created":"2024-11-28 05:44:24.788630","version":"3.24.5","swift_package_manager_enabled":false}
2 changes: 1 addition & 1 deletion example/example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class PickerDemoState extends State<PickerDemo> {
return Scaffold(
appBar: AppBar(title: const Text('Picker Example')),
body: Center(
child: FlatButton(
child: TextButton(
child: Text("Pick Delivery location"),
onPressed: () {
showPlacePicker();
Expand Down
6 changes: 3 additions & 3 deletions lib/widgets/place_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PlacePicker extends StatefulWidget {
/// map does not pan to the user's current location.
final LatLng? displayLocation;
LocalizationItem? localizationItem;
LatLng defaultLocation = LatLng(10.5381264, 73.8827201);
LatLng defaultLocation = LatLng(24.753832, 46.6925579);

PlacePicker(this.apiKey,
{this.displayLocation, this.localizationItem, LatLng? defaultLocation}) {
Expand Down Expand Up @@ -281,7 +281,7 @@ class PlacePickerState extends State<PlacePicker> {
),
);

Overlay.of(context)?.insert(this.overlayEntry!);
Overlay.of(context).insert(this.overlayEntry!);

autoCompleteSearch(place);
}
Expand Down Expand Up @@ -397,7 +397,7 @@ class PlacePickerState extends State<PlacePicker> {
),
);

Overlay.of(context)?.insert(this.overlayEntry!);
Overlay.of(context).insert(this.overlayEntry!);
}

/// Utility function to get clean readable name of a location. First checks
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/rich_suggestion.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class RichSuggestion extends StatelessWidget {
final boldText =
autoCompleteItem.text?.substring(autoCompleteItem.offset!, autoCompleteItem.offset! + autoCompleteItem.length!);
result.add(
TextSpan(text: boldText, style: style.copyWith(color: Theme.of(context).textTheme.bodyText1?.color)),
TextSpan(text: boldText, style: style.copyWith(color: Theme.of(context).textTheme.bodyMedium?.color)),
);

final remainingText = autoCompleteItem.text?.substring(autoCompleteItem.offset! + autoCompleteItem.length!);
Expand Down
6 changes: 4 additions & 2 deletions lib/widgets/search_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ class SearchInputState extends State<SearchInput> {
padding: EdgeInsets.symmetric(horizontal: 8),
child: Row(
children: <Widget>[
Icon(Icons.search, color: Theme.of(context).textTheme.bodyText1?.color),
Icon(Icons.search,
color: Theme.of(context).textTheme.bodyMedium?.color),
SizedBox(width: 8),
Expanded(
child: TextField(
decoration: InputDecoration(hintText: "Search place", border: InputBorder.none),
decoration: InputDecoration(
hintText: "Search place", border: InputBorder.none),
controller: this.editController,
onChanged: (value) {
setState(() {
Expand Down
Loading