phase3: improve arg-bang handler (allow ! in chains, ; terminator). 574->440
This commit is contained in:
@@ -110,7 +110,7 @@ class DesktopOrderDetailState extends State<DesktopOrderDetail> {
|
||||
width: double.infinity,
|
||||
padding: EdgeInsets.only(top: 0.0, bottom: 16.0),
|
||||
child: Text(
|
||||
order.cartInfo!.businessInfo!.name,
|
||||
order.cartInfo!.businessInfo!.name!,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
@@ -156,7 +156,7 @@ class DesktopOrderDetailState extends State<DesktopOrderDetail> {
|
||||
child: GoogleMap(
|
||||
onMapCreated: _onMapCreated,
|
||||
initialCameraPosition: CameraPosition(
|
||||
target: new LatLng(double.parse(order.shippingAddress!.lat), double.parse(order.shippingAddress!.lng)),
|
||||
target: new LatLng(double.parse(order.shippingAddress!.lat!), double.parse(order.shippingAddress!.lng!)!),
|
||||
zoom: 11.0,
|
||||
),
|
||||
onCameraMove: _onCameraMove,
|
||||
@@ -173,8 +173,8 @@ class DesktopOrderDetailState extends State<DesktopOrderDetail> {
|
||||
margin: EdgeInsets.only(bottom: 6.0),
|
||||
child: Text(
|
||||
S.of(context).delivery_distance_token(
|
||||
order.deliveryDistance!.distance!.text,
|
||||
order.deliveryDistance!.duration!.text
|
||||
order.deliveryDistance!.distance!.text!,
|
||||
order.deliveryDistance!.duration!.text!
|
||||
),
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
@@ -1092,12 +1092,12 @@ class DesktopOrderDetailState extends State<DesktopOrderDetail> {
|
||||
|
||||
if (!kIsWeb) {
|
||||
if (order.shippingMethod == 'store-delivery' && order.status != Constants.STATUS_COMPLETE && order.status != Constants.STATUS_CANCELLED) {
|
||||
storeLatLng = LatLng(double.parse(order.businessInfo!.address!.lat),
|
||||
double.parse(order.businessInfo!.address!.lng));
|
||||
customerLatLng = LatLng(double.parse(order.shippingAddress!.lat),
|
||||
double.parse(order.shippingAddress!.lng));
|
||||
storeLatLng = LatLng(double.parse(order.businessInfo!.address!.lat!),
|
||||
double.parse(order.businessInfo!.address!.lng!));
|
||||
customerLatLng = LatLng(double.parse(order.shippingAddress!.lat!),
|
||||
double.parse(order.shippingAddress!.lng!));
|
||||
deliveryLatLng =
|
||||
LatLng(order.shipperPosition!.lat, order.shipperPosition!.lng);
|
||||
LatLng(order.shipperPosition!.lat!, order.shipperPosition!.lng!);
|
||||
|
||||
_polyLine.clear();
|
||||
_polyLine.add(
|
||||
|
||||
Reference in New Issue
Block a user