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"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<item>
<bitmap android:gravity="fill" android:src="@drawable/splash"/>
</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"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<item>
<bitmap android:gravity="fill" android:src="@drawable/splash"/>
</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
the Flutter engine draws its first frame -->
<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>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</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
the Flutter engine draws its first frame -->
<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>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
</resources>

4
lib/pages/mine/login_page.dart

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

Loading…
Cancel
Save