From a49b1e06211e49594999c8bc83f87d46da71a2a3 Mon Sep 17 00:00:00 2001 From: AmirrezaChegini Date: Sat, 27 Sep 2025 09:04:41 +0330 Subject: [PATCH] fix: intro page --- assets/images/language.svg | 66 ++++++++++++++ assets/images/music_off.svg | 88 +++++++++---------- assets/images/music_on.svg | 85 +++++++++--------- assets/images/theme.svg | 52 +++++------ lib/common_ui/resources/my_assets.dart | 1 + .../intro/presentation/ui/intro_page.dart | 28 ++++-- 6 files changed, 194 insertions(+), 126 deletions(-) create mode 100644 assets/images/language.svg diff --git a/assets/images/language.svg b/assets/images/language.svg new file mode 100644 index 0000000..807ba35 --- /dev/null +++ b/assets/images/language.svg @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/images/music_off.svg b/assets/images/music_off.svg index 6c8ad5e..a8f7e90 100644 --- a/assets/images/music_off.svg +++ b/assets/images/music_off.svg @@ -1,32 +1,20 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - - + @@ -34,40 +22,44 @@ - + - + - - + + - - - + + + - - - + + + - - - + + + + + + + + + + + - - - - - - + + + + + - - - diff --git a/assets/images/music_on.svg b/assets/images/music_on.svg index c53351d..3beefd9 100644 --- a/assets/images/music_on.svg +++ b/assets/images/music_on.svg @@ -1,60 +1,57 @@ - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - + - - + + - - + + - - - + + + - - - + + + + + + + - - - + + + + + + + - - - - - - + + + + + - - + + diff --git a/assets/images/theme.svg b/assets/images/theme.svg index 93f83cf..dc27d27 100644 --- a/assets/images/theme.svg +++ b/assets/images/theme.svg @@ -1,51 +1,51 @@ - - - - + + + + - - - - - - - + + + + + + + - + - - + + - - + + - + - - + + - + - + - + - + - + @@ -53,8 +53,8 @@ - - + + diff --git a/lib/common_ui/resources/my_assets.dart b/lib/common_ui/resources/my_assets.dart index 1c8d553..157d386 100644 --- a/lib/common_ui/resources/my_assets.dart +++ b/lib/common_ui/resources/my_assets.dart @@ -15,4 +15,5 @@ class MyAssets { static const String whatsapp = 'assets/images/whatsapp.svg'; static const String youtube = 'assets/images/youtube.svg'; static const String instagram = 'assets/images/instagram.svg'; + static const String language = 'assets/images/language.svg'; } \ No newline at end of file diff --git a/lib/features/intro/presentation/ui/intro_page.dart b/lib/features/intro/presentation/ui/intro_page.dart index d2b6954..faaa1ee 100644 --- a/lib/features/intro/presentation/ui/intro_page.dart +++ b/lib/features/intro/presentation/ui/intro_page.dart @@ -26,6 +26,7 @@ class IntroPage extends StatelessWidget { child: Stack( alignment: Alignment.center, children: [ + _music(), _name(), _bottomBtns(context), ], @@ -35,12 +36,23 @@ class IntroPage extends StatelessWidget { ); } + Positioned _music() { + return Positioned( + top: 36, + right: 16, + child: MyImage( + image: MyAssets.musicOn, + ), + ); + } + + Positioned _name() { return Positioned( - top: 130, + top: 146, child: MyImage( image: MyAssets.hadiHoda, - size: 220, + size: 232, fit: BoxFit.cover, ), ); @@ -48,20 +60,20 @@ class IntroPage extends StatelessWidget { Positioned _bottomBtns(BuildContext context) { return Positioned( - bottom: 20, - left: 20, - right: 20, + bottom: 40, + left: 16, + right: 16, child: Row( crossAxisAlignment: CrossAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - MyImage(image: MyAssets.musicOn, size: 60), - InkWell(child: MyImage(image: MyAssets.start, size: 80), + MyImage(image: MyAssets.language), + InkWell(child: MyImage(image: MyAssets.start, size: 90), onTap: () { showAboutUsDialog(context: context); }, ), - MyImage(image: MyAssets.theme, size: 60), + MyImage(image: MyAssets.theme), ], ), );