LocationPicker constructor
const
LocationPicker(
- String apiKey, {
- Key? key,
- LatLng initialCenter = const LatLng(28.8993447, 76.6228793),
- double initialZoom = 40.0,
- bool requiredGPS = true,
- bool myLocationButtonEnabled = true,
- bool layersButtonEnabled = true,
- bool automaticallyAnimateToCurrentLocation = true,
- String? mapStylePath,
- Color appBarColor = Colors.blue,
- BoxDecoration? searchBarBoxDecoration,
- String? hintText,
- Widget resultCardConfirmIcon = const Icon(Icons.arrow_forward),
- Alignment resultCardAlignment = Alignment.bottomCenter,
- Decoration? resultCardDecoration,
- EdgeInsets resultCardPadding = const EdgeInsets.all(16.0),
- List<
String> countries = const ["IN"], - String language = 'en',
- LocationAccuracy desiredAccuracy = LocationAccuracy.bestForNavigation,
Implementation
const LocationPicker(
this.apiKey, {
Key? key,
this.initialCenter = const LatLng(28.8993447, 76.6228793),
this.initialZoom = 40.0,
this.requiredGPS = true,
this.myLocationButtonEnabled = true,
this.layersButtonEnabled = true,
this.automaticallyAnimateToCurrentLocation = true,
this.mapStylePath,
this.appBarColor = Colors.blue,
this.searchBarBoxDecoration,
this.hintText,
this.resultCardConfirmIcon = const Icon(Icons.arrow_forward),
this.resultCardAlignment = Alignment.bottomCenter,
this.resultCardDecoration,
this.resultCardPadding = const EdgeInsets.all(16.0),
this.countries = const ["IN"],
this.language = 'en',
this.desiredAccuracy = LocationAccuracy.bestForNavigation,
}) : super(key: key);