Browse Source

优化启动页,修改文案和颜色

ios
王子贤 3 months ago
parent
commit
4b3716243e
7 changed files with 6 additions and 14 deletions
  1. 1
      android/app/src/main/res/drawable-v21/launch_background.xml
  2. BIN
      android/app/src/main/res/drawable-v21/splash.png
  3. 1
      android/app/src/main/res/drawable/launch_background.xml
  4. BIN
      android/app/src/main/res/drawable/splash.png
  5. 7
      android/app/src/main/res/values-night/styles.xml
  6. 7
      android/app/src/main/res/values/styles.xml
  7. 4
      lib/pages/mine/login_page.dart

1
android/app/src/main/res/drawable-v21/launch_background.xml

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<item> <item>
<bitmap android:gravity="fill" android:src="@drawable/splash"/> <bitmap android:gravity="fill" android:src="@drawable/splash"/>
</item> </item>

BIN
android/app/src/main/res/drawable-v21/splash.png

Before After
Width: 2250  |  Height: 4872  |  Size: 700 KiB Width: 562  |  Height: 1250  |  Size: 77 KiB

1
android/app/src/main/res/drawable/launch_background.xml

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<item> <item>
<bitmap android:gravity="fill" android:src="@drawable/splash"/> <bitmap android:gravity="fill" android:src="@drawable/splash"/>
</item> </item>

BIN
android/app/src/main/res/drawable/splash.png

Before After
Width: 2250  |  Height: 4872  |  Size: 700 KiB Width: 562  |  Height: 1250  |  Size: 77 KiB

7
android/app/src/main/res/values-night/styles.xml

@ -5,18 +5,13 @@
<!-- Show a splash screen on the activity. Automatically removed when <!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame --> the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item> <item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style> </style>
<!-- Theme applied to the Android Window as soon as the process has started. <!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its Flutter UI initializes, as well as behind your Flutter UI while its
running. running.
This Theme is only used starting with V2 of Flutter's Android embedding. --> This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar"> <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item> <item name="android:windowBackground">?android:colorBackground</item>
</style> </style>
</resources>
</resources>

7
android/app/src/main/res/values/styles.xml

@ -5,18 +5,13 @@
<!-- Show a splash screen on the activity. Automatically removed when <!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame --> the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item> <item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style> </style>
<!-- Theme applied to the Android Window as soon as the process has started. <!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its Flutter UI initializes, as well as behind your Flutter UI while its
running. running.
This Theme is only used starting with V2 of Flutter's Android embedding. --> This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar"> <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item> <item name="android:windowBackground">?android:colorBackground</item>
</style> </style>
</resources>
</resources>

4
lib/pages/mine/login_page.dart

@ -42,7 +42,7 @@ class LoginPage extends StatelessWidget {
Image.asset(Assets.imagesLoginLogo, height: 60), Image.asset(Assets.imagesLoginLogo, height: 60),
const SizedBox(height: 10), const SizedBox(height: 10),
const Text( const Text(
'趣恋恋,让有趣的灵魂,遇见心动的人',
'趣恋恋,让有趣的灵魂相恋',
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 14,
color: Color.fromRGBO(153, 153, 153, 1), color: Color.fromRGBO(153, 153, 153, 1),
@ -165,7 +165,7 @@ class LoginPage extends StatelessWidget {
onChanged: (value) { onChanged: (value) {
agreeTerms.value = value ?? false; agreeTerms.value = value ?? false;
}, },
activeColor: Colors.grey,
activeColor: const Color.fromRGBO(117, 98, 249, 1),
side: const BorderSide(color: Colors.grey), side: const BorderSide(color: Colors.grey),
shape: const CircleBorder(), shape: const CircleBorder(),
materialTapTargetSize: materialTapTargetSize:

Loading…
Cancel
Save