|
|
|
|
@ -61,10 +61,10 @@ class RrtMapScreen extends StatelessWidget {
|
|
|
|
|
BottomSheetType.EXPANDED: ExpanedBottomSheet(context),
|
|
|
|
|
BottomSheetType.FIXED: FixedBottomSheet(context),
|
|
|
|
|
},
|
|
|
|
|
).paddingAll(16.h),
|
|
|
|
|
),
|
|
|
|
|
body: Stack(
|
|
|
|
|
children: [
|
|
|
|
|
if (context.read<EmergencyServicesViewModel>().isGMSAvailable )
|
|
|
|
|
if (context.read<EmergencyServicesViewModel>().isGMSAvailable)
|
|
|
|
|
GMSMap(
|
|
|
|
|
currentLocation:
|
|
|
|
|
context.read<EmergencyServicesViewModel>().getGMSLocation(),
|
|
|
|
|
@ -116,15 +116,13 @@ class RrtMapScreen extends StatelessWidget {
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
spacing: 24.h,
|
|
|
|
|
children: [
|
|
|
|
|
inputFields(context),
|
|
|
|
|
inputFields(context).paddingSymmetrical(16.h, 0.h),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 200.h,
|
|
|
|
|
child: DecoratedBox(
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
|
color: AppColors.scaffoldBgColor,
|
|
|
|
|
@ -140,16 +138,14 @@ class RrtMapScreen extends StatelessWidget {
|
|
|
|
|
Column(
|
|
|
|
|
spacing: 4.h,
|
|
|
|
|
children: [
|
|
|
|
|
"Select Pickup Details".needTranslation.toText21(
|
|
|
|
|
weight: FontWeight.w600,
|
|
|
|
|
color: AppColors.textColor,
|
|
|
|
|
),
|
|
|
|
|
" Please select the details of pickup"
|
|
|
|
|
.needTranslation
|
|
|
|
|
.toText12(
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
color: AppColors.greyTextColor,
|
|
|
|
|
)
|
|
|
|
|
"Select Location".needTranslation.toText21(
|
|
|
|
|
weight: FontWeight.w600,
|
|
|
|
|
color: AppColors.textColor,
|
|
|
|
|
),
|
|
|
|
|
"Please select the location".needTranslation.toText12(
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
color: AppColors.greyTextColor,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
CustomButton(
|
|
|
|
|
@ -160,7 +156,8 @@ class RrtMapScreen extends StatelessWidget {
|
|
|
|
|
PlaceDetails? placeDetails = locationViewModel.placeDetails;
|
|
|
|
|
PlacePrediction? placePrediction = locationViewModel.selectedPrediction;
|
|
|
|
|
context.read<EmergencyServicesViewModel>().submitRRTRequest(response?.results.first, placeDetails, placePrediction);
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
).paddingOnly(top: 24.h, bottom: 32.h, left: 24.h, right: 24.h),
|
|
|
|
|
),
|
|
|
|
|
@ -561,7 +558,7 @@ class RrtMapScreen extends StatelessWidget {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///decide which field to show first based on the selected calling place
|
|
|
|
|
inputFields(BuildContext context) {
|
|
|
|
|
Widget inputFields(BuildContext context) {
|
|
|
|
|
return textPlaceInput(context);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|