full_googlemap_pick_search 0.0.1 full_googlemap_pick_search: ^0.0.1 copied to clipboard
This gives youa feel of complete googlemap pick place
#
This Packacge is a Full UI solution for those who needs a Google Map with search feautre using photon API (https://photon.komoot.io/api/) but on demand can be replaced with Google Place search but it seems Paid this package Can be used in cab service apps who just need the latitude and logitude of picked places and a search place feature but can be enhanced to get the full address but first ....REQUEST / Change on DEMAND
Show some β€οΈ and star the repo to support the project #
Features #
- Search feature
- Speach to text
- on tap search result change camera position to new one
- Advance feature like Get Current location
- advance UI design
π» Installation #
In the dependencies:
section of your pubspec.yaml
, add the following line:
full_googlemap_pick_search:
Import in your project:
import 'package:full_googlemap_pick_search/full_googlemap_pick_search.dart';
Imports #
**Please do the respective installation for: (https://pub-web.flutter-io.cn/packages/google_maps_flutter)
For Android => add these lines in AndroidManifest.xml
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="<YOUR API KEY>"/> //get your api key from google cloud console
For IOS =>
Do yourself
,
(https://pub-web.flutter-io.cn/packages/map_picker),
(https://pub-web.flutter-io.cn/packages/location),
(https://pub-web.flutter-io.cn/packages/geocoding),
(https://pub-web.flutter-io.cn/packages/geolocator),
(https://pub-web.flutter-io.cn/packages/flutter_svg),
(https://pub-web.flutter-io.cn/packages/speech_to_text),
(https://pub-web.flutter-io.cn/packages/dio),
ByteData data =
await PlatformAssetBundle().load('assets/ca/lets-encrypt-r3.pem');
SecurityContext.defaultContext
.setTrustedCertificatesBytes(data.buffer.asUint8List());
runApp()//your widget
(https://pub-web.flutter-io.cn/packages/permission_handler),
βBasic Usage #
Navigate Route/material Route/get Route or simply use the Statefulwidget => CreateMap()
CreateMap(
buttonText: ,
//text on button as String
showMyCurrentLocationButton: ,//bool to show go to my current location Button if true then it will appear
initialLatitude: ,
//this is a double value where the initial position of Custom marker is shown
initialLongitude: ,//this is a double value where the initial position of Custom marker is shown
initialZoom: , //zoom level
onSearchDone: (Geopoint){}//not required but want to perform specific action after search done on clicking searched item
onBtnPress: (Geopoint){} //important and required what to want to perform on button click on which you have supplied buttonText,
mapType: //MapType.normal or MapType.terrain,or MapType.satellite, or MapType.hybrid,
zoomLevel: //zoom on search or move
)
Permissions #
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE " />
Screenshots #
CreateMap | Example UI |
---|---|
Screenshots All Feature #
Directory Structure #
|-- assets
| '-- svg
| '-- location_pin.svg
|
|-- lib
| |-- full_googlemap_pick_search.dart
| |--geo_point.dart
| |--usercurrentlocation.dart
| '-- wigdets
| |--speechtotext.dart
| '-- searchextension
| |--place_search.dart
| |-- core
| | '-- api.dart
| |-- core
| '-- address.dart
|-- pubspec.yaml
|-- screenShots
| |-- HealthcareMobileApp.png
| |-- screenshot_1.jpg
| |-- screenshot_2.jpg
| |-- screenshot_ios_1.png
| '-- screenshot_ios_2.png
'-- test
'-- full_googlemap_pick_search_test.dart
π° Donations #
** This project needs you! If you would like to support this projects further development, the creator of this project or the continuous maintenance of this project, feel free to donate. Your donation is highly appreciated (and I love food, coffee and beer). Thank you! **
Donate
- Donate INR / Rupees: I really really want to support this project, great job!
- Donate crypto: You are the man! This project saved me hours (if not days) of struggle and hard work, simply awesome!
- Donate LAPTOP: Go buddy, buy Macbook Pro /Gaming Laptop/Programming PC for yourself/Support!
Of course, you can also choose what you want to donate, all donations are awesome!
Donate Tron #
[] => TL6BDLaz5L8rV6PFN2GvaxbtrZgxR9Cm7w
Donate BTC #
[] => 34BUWvabqk9sBCepoJEhQBUM9zsLoQ7ZHf
Donate ETH #
[] => 0x74520a1E23Ba0e6415816066CDe53c316cf7336A
π¨ Developed By #
Manish Gautam
- Email: [email protected]
Yotube Channel #
π License #
Copyright (c) 2019 Manish Gautam
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Additional information #
one issue but only due to the Google Geocode which can give plateform exception error on search of invalid place those don't have a valid name of place/geopoint. This whole package is a contribution of other projects and the creator of those other packages are equally lible to adopt this package and a Great thanks for there support Specially (https://github.com/gauravmehta13/free_place_search). and Download ca and rename as per mentioned
π How to Contribute #
there are two ways of contribution one is Donation and other is Finding Issues if any issue then