no message

pull/242/head
Sultan khan 2 days ago
parent a38a2a0619
commit 9e5c9f9b4c

@ -378,8 +378,8 @@ class _ServicesPageState extends State<ServicesPage> {
void initState() { void initState() {
// TODO: implement initState // TODO: implement initState
super.initState(); super.initState();
weatherVM = getIt<WeatherMonitorViewModel>(); //weatherVM = getIt<WeatherMonitorViewModel>();
weatherVM.fetchCityInfoList(); // weatherVM.fetchCityInfoList();
} }
@ -398,76 +398,76 @@ class _ServicesPageState extends State<ServicesPage> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Row( // Row(
children: [ // children: [
Flexible( // Flexible(
child: Container( // child: Container(
padding: EdgeInsets.all(16.w), // padding: EdgeInsets.all(16.w),
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: AppColors.whiteColor, borderRadius: 24.r, hasShadow: false), // decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: AppColors.whiteColor, borderRadius: 24.r, hasShadow: false),
child: Column( // child: Column(
children: [ // children: [
Row( // Row(
children: [ // children: [
Utils.buildSvgWithAssets(icon: "assets/images/svg/cloudyweather.svg", width: 64.w, height: 64.w).onPress(() { // Utils.buildSvgWithAssets(icon: "assets/images/svg/cloudyweather.svg", width: 64.w, height: 64.w).onPress(() {
// locationUtils?.getCurrentLocation(); // // locationUtils?.getCurrentLocation();
print(getIt.get<AppState>().userLat); // print(getIt.get<AppState>().userLat);
print(getIt.get<AppState>().userLong); // print(getIt.get<AppState>().userLong);
}), // }),
SizedBox(width: 12.w), // SizedBox(width: 12.w),
Column( // Column(
crossAxisAlignment: CrossAxisAlignment.start, // crossAxisAlignment: CrossAxisAlignment.start,
children: [ // children: [
"August 19, 2025 - Tuesday, 11:25 ".toText12(fontWeight: FontWeight.w500, color: AppColors.greyTextColor), // "August 19, 2025 - Tuesday, 11:25 ".toText12(fontWeight: FontWeight.w500, color: AppColors.greyTextColor),
SizedBox( // SizedBox(
height: 4.w, // height: 4.w,
), // ),
"Cloudy 38oC".toText16(isBold: true, weight: FontWeight.w600), // "Cloudy 38oC".toText16(isBold: true, weight: FontWeight.w600),
SizedBox( // SizedBox(
height: 4.w, // height: 4.w,
), // ),
"Health tips based on current weather".toText12(color: AppColors.greyTextColor, fontWeight: FontWeight.w500) // "Health tips based on current weather".toText12(color: AppColors.greyTextColor, fontWeight: FontWeight.w500)
], // ],
), // ),
], // ],
), // ),
SizedBox(height: 16.w), // SizedBox(height: 16.w),
Container( // Container(
padding: EdgeInsets.all(16.w), // padding: EdgeInsets.all(16.w),
decoration: RoundedRectangleBorder().toSmoothCornerDecoration( // decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: AppColors.lightGrayBGColor, // color: AppColors.lightGrayBGColor,
borderRadius: 10.r, // borderRadius: 10.r,
hasShadow: false, // hasShadow: false,
), // ),
child: Row( // child: Row(
crossAxisAlignment: CrossAxisAlignment.center, // crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween, // mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ // children: [
Row( // Row(
children: [ // children: [
Utils.buildSvgWithAssets(icon: "assets/images/svg/morning.svg", width: 24.w, height: 24.h), // Utils.buildSvgWithAssets(icon: "assets/images/svg/morning.svg", width: 24.w, height: 24.h),
SizedBox(width: 4.w), // SizedBox(width: 4.w),
DateTime.now().toLocal().toString().substring(11, 16).toText14(isBold: true), // DateTime.now().toLocal().toString().substring(11, 16).toText14(isBold: true),
], // ],
), // ),
SizedBox(width: 25.w), // SizedBox(width: 25.w),
DateTime.now().toLocal().toString().substring(11, 16).toText14(isBold: true), // DateTime.now().toLocal().toString().substring(11, 16).toText14(isBold: true),
SizedBox(width: 25.w), // SizedBox(width: 25.w),
Row( // Row(
children: [ // children: [
Utils.buildSvgWithAssets(icon: "assets/images/svg/evening.svg", width: 24.w, height: 24.h), // Utils.buildSvgWithAssets(icon: "assets/images/svg/evening.svg", width: 24.w, height: 24.h),
SizedBox(width: 4.w), // SizedBox(width: 4.w),
DateTime.now().toLocal().toString().substring(11, 16).toText14(isBold: true), // DateTime.now().toLocal().toString().substring(11, 16).toText14(isBold: true),
], // ],
), // ),
], // ],
).expanded, // ).expanded,
).paddingSymmetrical(0.w, 8.w) // ).paddingSymmetrical(0.w, 8.w)
], // ],
), // ),
), // ),
) // )
], // ],
).paddingSymmetrical(24.w, 0.w), // ).paddingSymmetrical(24.w, 0.w),
SizedBox(height: 16.h), SizedBox(height: 16.h),
LocaleKeys.medicalAndCareServices.tr().toText18(isBold: true).paddingSymmetrical(24.w, 0), LocaleKeys.medicalAndCareServices.tr().toText18(isBold: true).paddingSymmetrical(24.w, 0),
SizedBox(height: 16.h), SizedBox(height: 16.h),

Loading…
Cancel
Save