Browse Source

fix: path points and mission location

pull/8/head
AmirrezaChegini 1 week ago
parent
commit
a74f64c717
  1. 2
      lib/common_ui/resources/my_text_style.dart
  2. 8
      lib/features/home/presentation/bloc/home_bloc.dart
  3. 4
      lib/features/home/presentation/ui/home_page.dart
  4. 2
      lib/features/home/presentation/ui/widgets/mission_widget.dart

2
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(

8
lib/features/home/presentation/bloc/home_bloc.dart

@ -22,12 +22,12 @@ class HomeBloc extends Bloc<HomeEvent, HomeState> {
final List<MissionLocation> 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<MissionLocation> topLocationList = [

4
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<HomeBloc>().bottomLocationList.length,

2
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),

Loading…
Cancel
Save