1
This commit is contained in:
parent
f6cb493989
commit
8a2463ae83
@ -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">
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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,39 +88,43 @@ class SettingsView extends GetView<SettingsController> {
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildOptions() {
|
||||
return ListView.separated(
|
||||
shrinkWrap: true,
|
||||
padding: EdgeInsets.zero,
|
||||
itemCount: controller.options.length,
|
||||
itemBuilder: (context, index) {
|
||||
return Material(
|
||||
color: Colors.transparent,
|
||||
child: InkWell(
|
||||
onTap: () => controller.settingOptionOnTap(index),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
controller.options[index],
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 22.sp,
|
||||
),
|
||||
)
|
||||
],
|
||||
Widget _buildOptions(context) {
|
||||
return Expanded(
|
||||
child: ListView.separated(
|
||||
shrinkWrap: true,
|
||||
padding: EdgeInsets.only(
|
||||
bottom: MediaQuery.of(context).padding.bottom + 70.w,
|
||||
),
|
||||
itemCount: controller.options.length,
|
||||
itemBuilder: (context, index) {
|
||||
return Material(
|
||||
color: Colors.transparent,
|
||||
child: InkWell(
|
||||
onTap: () => controller.settingOptionOnTap(index),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
controller.options[index],
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 22.sp,
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
separatorBuilder: (context, index) {
|
||||
return Container(
|
||||
height: 16.w,
|
||||
color: Colors.transparent,
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
separatorBuilder: (context, index) {
|
||||
return Container(
|
||||
height: 16.w,
|
||||
color: Colors.transparent,
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1 +1 @@
|
||||
const appName = 'Wallpaper Genie';
|
||||
const appName = 'ATPaper';
|
||||
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user