From a74f64c717421a1246498262ee51e44ac1bad8fe Mon Sep 17 00:00:00 2001 From: AmirrezaChegini Date: Tue, 30 Sep 2025 00:43:20 +0330 Subject: [PATCH] fix: path points and mission location --- lib/common_ui/resources/my_text_style.dart | 2 +- lib/features/home/presentation/bloc/home_bloc.dart | 8 ++++---- lib/features/home/presentation/ui/home_page.dart | 4 ++-- .../home/presentation/ui/widgets/mission_widget.dart | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/common_ui/resources/my_text_style.dart b/lib/common_ui/resources/my_text_style.dart index 9a73696..34c9b7a 100644 --- a/lib/common_ui/resources/my_text_style.dart +++ b/lib/common_ui/resources/my_text_style.dart @@ -9,7 +9,7 @@ class MyTextStyle { static const TextStyle normal = TextStyle( fontFamily: fontFamily, - fontSize: 28, + fontSize: 26, fontWeight: FontWeight.w400, shadows: [ Shadow( diff --git a/lib/features/home/presentation/bloc/home_bloc.dart b/lib/features/home/presentation/bloc/home_bloc.dart index c52801b..9253479 100644 --- a/lib/features/home/presentation/bloc/home_bloc.dart +++ b/lib/features/home/presentation/bloc/home_bloc.dart @@ -22,12 +22,12 @@ class HomeBloc extends Bloc { final List bottomLocationList = [ MissionLocation(bottom: -30, left: 30, index: 1), MissionLocation(bottom: 50, left: 100, index: 2), - MissionLocation(bottom: 150, left: 50, index: 3), - MissionLocation(bottom: 250, left: 130, index: 4), - MissionLocation(bottom: 300, right: 50, index: 5), + MissionLocation(bottom: 150, left: 60, index: 3), + MissionLocation(bottom: 210, left: 120, index: 4), + MissionLocation(bottom: 250, right: 60, index: 5), MissionLocation(top: 170, right: 40, index: 6), MissionLocation(top: 70, right: 70, index: 7), - MissionLocation(top: -20, right: 60, index: 8), + MissionLocation(top: -20, right: 70, index: 8), ]; final List topLocationList = [ diff --git a/lib/features/home/presentation/ui/home_page.dart b/lib/features/home/presentation/ui/home_page.dart index 273678a..303a800 100644 --- a/lib/features/home/presentation/ui/home_page.dart +++ b/lib/features/home/presentation/ui/home_page.dart @@ -96,14 +96,14 @@ class HomePage extends StatelessWidget { Positioned _bottomPath(BuildContext context) { return Positioned( - bottom: context.heightScreen * 0.12, + bottom: context.heightScreen * 0.18, left: context.widthScreen * 0.2, child: Stack( clipBehavior: Clip.none, children: [ BottomPath( width: context.widthScreen * 0.75, - height: context.heightScreen * 0.65, + height: context.heightScreen * 0.6, ), ...List.generate( context.read().bottomLocationList.length, diff --git a/lib/features/home/presentation/ui/widgets/mission_widget.dart b/lib/features/home/presentation/ui/widgets/mission_widget.dart index f25a665..8ae35b7 100644 --- a/lib/features/home/presentation/ui/widgets/mission_widget.dart +++ b/lib/features/home/presentation/ui/widgets/mission_widget.dart @@ -27,7 +27,7 @@ class MissionWidget extends StatelessWidget { return Stack( alignment: Alignment.topCenter, children: [ - MyImage(image: MissionType.image[type] ?? MyAssets.mission, size: 48), + MyImage(image: MissionType.image[type] ?? MyAssets.mission, size: 44), Text( '$index', style: MyTextStyle.normal.copyWith(color: context.primaryColor),