This commit is contained in:
xh 2024-07-22 20:01:22 +08:00
parent f6cb493989
commit 8a2463ae83
6 changed files with 49 additions and 43 deletions

View File

@ -17,7 +17,7 @@
<application
android:name="${applicationName}"
android:icon="@mipmap/launcher_icon"
android:label="Fantasy Wallpaper"
android:label="ATPaper"
android:requestLegacyExternalStorage="true"
android:enableOnBackInvokedCallback="true"
tools:targetApi="tiramisu">

View File

@ -7,7 +7,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Fantasy Wallpaper</string>
<string>ATPaper</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>

View File

@ -51,13 +51,13 @@ void main() async {
// Hive
await initHive();
UPCache.preInit();
runApp(const MyApp());
// EasyLoading配置
configLoading();
UPCache.preInit();
//
if (Platform.isAndroid) {
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(

View File

@ -1,3 +1,4 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
@ -29,12 +30,13 @@ class SettingsView extends GetView<SettingsController> {
Container(
height: 1.w,
width: double.infinity,
margin: const EdgeInsets.symmetric(horizontal: 58,vertical: 15).w,
decoration: BoxDecoration(
color: Colors.white.withOpacity(.5),
margin: const EdgeInsets.symmetric(
horizontal: 58,
vertical: 15,
).w,
decoration: BoxDecoration(color: Colors.white.withOpacity(.5)),
),
),
_buildOptions(),
_buildOptions(context),
],
),
),
@ -86,10 +88,13 @@ class SettingsView extends GetView<SettingsController> {
);
}
Widget _buildOptions() {
return ListView.separated(
Widget _buildOptions(context) {
return Expanded(
child: ListView.separated(
shrinkWrap: true,
padding: EdgeInsets.zero,
padding: EdgeInsets.only(
bottom: MediaQuery.of(context).padding.bottom + 70.w,
),
itemCount: controller.options.length,
itemBuilder: (context, index) {
return Material(
@ -119,6 +124,7 @@ class SettingsView extends GetView<SettingsController> {
color: Colors.transparent,
);
},
),
);
}
}

View File

@ -1 +1 @@
const appName = 'Wallpaper Genie';
const appName = 'ATPaper';

View File

@ -2,7 +2,7 @@ name: wallpaperx
description: "A new Flutter project."
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0
version: 1.0.0+1
environment:
sdk: '>=3.4.3 <4.0.0'