From ee7665930e0965cb40ee02b004102971ffb2d491 Mon Sep 17 00:00:00 2001 From: nextwo <1234> Date: Mon, 13 Nov 2023 16:41:52 +0300 Subject: [PATCH] dark / ligth dark & localization --- .../pages/land_page/my_request/my_requests_page.dart | 4 ++-- lib/views/widgets/date_and_time/date_picker.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/new_views/pages/land_page/my_request/my_requests_page.dart b/lib/new_views/pages/land_page/my_request/my_requests_page.dart index 957d74d6..aec4d6a4 100644 --- a/lib/new_views/pages/land_page/my_request/my_requests_page.dart +++ b/lib/new_views/pages/land_page/my_request/my_requests_page.dart @@ -99,7 +99,7 @@ class _MyRequestsPageState extends State { alignment: Alignment.center, padding: const EdgeInsets.symmetric(horizontal: 8), decoration: ShapeDecoration( - color: selectedRequest == index ? const Color(0xFFEAF1F4) : Colors.white, + color: selectedRequest == index ? Color(0xFFEAF1F4):Colors.white, shape: RoundedRectangleBorder( side: BorderSide(width: 1, color: selectedRequest == index ? Color(0xFF4A8DB7) : Colors.white), borderRadius: BorderRadius.circular(7), @@ -113,7 +113,7 @@ class _MyRequestsPageState extends State { ) ], ), - child: Text(requestsList[index], style: AppTextStyles.bodyText2.copyWith(color: context.isDark ? AppColor.neutral30 : AppColor.neutral50, height: 1)), + child: Text(requestsList[index], style: AppTextStyles.bodyText2.copyWith(color: context.isDark ? AppColor.neutral20 : AppColor.neutral50, height: 1)), ).onPress(() { if (selectedRequest != index) { setState(() { diff --git a/lib/views/widgets/date_and_time/date_picker.dart b/lib/views/widgets/date_and_time/date_picker.dart index a460140d..70cf571e 100644 --- a/lib/views/widgets/date_and_time/date_picker.dart +++ b/lib/views/widgets/date_and_time/date_picker.dart @@ -32,11 +32,11 @@ class ADatePicker extends StatelessWidget { mainAxisSize: MainAxisSize.min, children: [ label.tinyFont(context), - ((date?.toIso8601String()?.split("T")?.first) ?? context.translation.pickADate).bodyText(context).custom(color: AppColor.neutral50), + ((date?.toIso8601String()?.split("T")?.first) ?? context.translation.pickADate).bodyText(context).custom(color: context.isDark?AppColor.neutral10: AppColor.neutral50), ], ).expanded, 16.width, - "calender".toSvgAsset(width: 20), + "calender".toSvgAsset(width: 20, color: context.isDark? AppColor.neutral10:null), ], ), ).onPress(enable