final
This commit is contained in:
@@ -15,7 +15,7 @@ import '../../widgets/general/text_link.dart';
|
||||
class MobileContactUs extends StatefulWidget {
|
||||
final Business business;
|
||||
|
||||
const MobileContactUs(this.business, {Key key}) : super(key: key);
|
||||
const MobileContactUs(this.business, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
@@ -29,7 +29,7 @@ class MobileContactUsState extends State<MobileContactUs> {
|
||||
String mapUrl = 'https://goo.gl/maps/M365MF5AW35n9ij67';
|
||||
|
||||
Completer<GoogleMapController> _controller = Completer();
|
||||
LatLng _lastMapPosition;
|
||||
LatLng? _lastMapPosition;
|
||||
final Set<Marker> _markers = {};
|
||||
final Set<Polyline> _polyLine = {};
|
||||
|
||||
@@ -243,7 +243,7 @@ class MobileContactUsState extends State<MobileContactUs> {
|
||||
),
|
||||
)
|
||||
);
|
||||
if (widget.business.address.addressLine2 != null && widget.business.address.addressLine2.isNotEmpty) {
|
||||
if (widget.business.address.addressLine2 != null && widget.business.address.addressLine2!.isNotEmpty) {
|
||||
col.children.add(
|
||||
Container(
|
||||
padding: EdgeInsets.only(left: 16, right: 16, top: 4, bottom: 4),
|
||||
@@ -273,8 +273,8 @@ class MobileContactUsState extends State<MobileContactUs> {
|
||||
_markers.clear();
|
||||
_markers.add(Marker(
|
||||
markerId: MarkerId('shop_position'),
|
||||
position: LatLng(double.parse(widget.business.address.lat),
|
||||
double.parse(widget.business.address.lng)),
|
||||
position: LatLng(double.parse(widget.business.address.lat ?? ''),
|
||||
double.parse(widget.business.address.lng ?? '')),
|
||||
infoWindow: InfoWindow(
|
||||
title: S
|
||||
.of(context)
|
||||
@@ -290,8 +290,8 @@ class MobileContactUsState extends State<MobileContactUs> {
|
||||
onMapCreated: _onMapCreated,
|
||||
initialCameraPosition: CameraPosition(
|
||||
target: LatLng(
|
||||
double.parse(widget.business.address.lat),
|
||||
double.parse(widget.business.address.lng)),
|
||||
double.parse(widget.business.address.lat ?? ''),
|
||||
double.parse(widget.business.address.lng ?? '')),
|
||||
zoom: 14.0,
|
||||
),
|
||||
onCameraMove: _onCameraMove,
|
||||
|
||||
Reference in New Issue
Block a user