|
|
|
|
@ -5,7 +5,6 @@ import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/api_consts.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/app_assets.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/utils/size_utils.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/extensions/string_extensions.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/extensions/widget_extensions.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/generated/locale_keys.g.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/theme/colors.dart';
|
|
|
|
|
@ -131,11 +130,14 @@ class LocationMapWidget extends StatelessWidget {
|
|
|
|
|
borderRadius: BorderRadius.circular(24.r),
|
|
|
|
|
child: Utils.buildImgWithNetwork(
|
|
|
|
|
url: staticMapUrl,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
height: 165.h,
|
|
|
|
|
iconColor: AppColors.transparent,
|
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
errorBuilder: (context, error, stackTrace) {
|
|
|
|
|
return Container(
|
|
|
|
|
height: 165.h,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: AppColors.bgScaffoldColor,
|
|
|
|
|
borderRadius: BorderRadius.circular(24.r),
|
|
|
|
|
@ -153,24 +155,23 @@ class LocationMapWidget extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
Positioned(
|
|
|
|
|
bottom: 0,
|
|
|
|
|
child: SizedBox(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.785,
|
|
|
|
|
child: CustomButton(
|
|
|
|
|
text: LocaleKeys.getDirections.tr(context: context),
|
|
|
|
|
onPressed: onDirectionsTap ?? _defaultLaunchDirections,
|
|
|
|
|
backgroundColor: AppColors.textColor.withValues(alpha: 0.8),
|
|
|
|
|
borderColor: AppColors.textColor.withValues(alpha: 0.01),
|
|
|
|
|
textColor: AppColors.whiteColor,
|
|
|
|
|
fontSize: 14.f,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
borderRadius: 12.r,
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.w),
|
|
|
|
|
height: 40.h,
|
|
|
|
|
icon: AppAssets.directions_icon,
|
|
|
|
|
iconColor: AppColors.whiteColor,
|
|
|
|
|
iconSize: 14.h,
|
|
|
|
|
).paddingAll(12.h),
|
|
|
|
|
),
|
|
|
|
|
left: 0,
|
|
|
|
|
right: 0,
|
|
|
|
|
child: CustomButton(
|
|
|
|
|
text: LocaleKeys.getDirections.tr(context: context),
|
|
|
|
|
onPressed: onDirectionsTap ?? _defaultLaunchDirections,
|
|
|
|
|
backgroundColor: AppColors.textColor.withValues(alpha: 0.8),
|
|
|
|
|
borderColor: AppColors.textColor.withValues(alpha: 0.01),
|
|
|
|
|
textColor: AppColors.whiteColor,
|
|
|
|
|
fontSize: 14.f,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
borderRadius: 12.r,
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.w),
|
|
|
|
|
height: 40.h,
|
|
|
|
|
icon: AppAssets.directions_icon,
|
|
|
|
|
iconColor: AppColors.whiteColor,
|
|
|
|
|
iconSize: 14.h,
|
|
|
|
|
).paddingAll(12.h),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|