1
This commit is contained in:
parent
f6cb493989
commit
8a2463ae83
@ -17,7 +17,7 @@
|
|||||||
<application
|
<application
|
||||||
android:name="${applicationName}"
|
android:name="${applicationName}"
|
||||||
android:icon="@mipmap/launcher_icon"
|
android:icon="@mipmap/launcher_icon"
|
||||||
android:label="Fantasy Wallpaper"
|
android:label="ATPaper"
|
||||||
android:requestLegacyExternalStorage="true"
|
android:requestLegacyExternalStorage="true"
|
||||||
android:enableOnBackInvokedCallback="true"
|
android:enableOnBackInvokedCallback="true"
|
||||||
tools:targetApi="tiramisu">
|
tools:targetApi="tiramisu">
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>Fantasy Wallpaper</string>
|
<string>ATPaper</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
<string>$(EXECUTABLE_NAME)</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
|
|||||||
@ -51,13 +51,13 @@ void main() async {
|
|||||||
// 初始化Hive
|
// 初始化Hive
|
||||||
await initHive();
|
await initHive();
|
||||||
|
|
||||||
|
UPCache.preInit();
|
||||||
|
|
||||||
runApp(const MyApp());
|
runApp(const MyApp());
|
||||||
|
|
||||||
// EasyLoading配置
|
// EasyLoading配置
|
||||||
configLoading();
|
configLoading();
|
||||||
|
|
||||||
UPCache.preInit();
|
|
||||||
|
|
||||||
// 沉浸式状态栏
|
// 沉浸式状态栏
|
||||||
if (Platform.isAndroid) {
|
if (Platform.isAndroid) {
|
||||||
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
@ -29,12 +30,13 @@ class SettingsView extends GetView<SettingsController> {
|
|||||||
Container(
|
Container(
|
||||||
height: 1.w,
|
height: 1.w,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
margin: const EdgeInsets.symmetric(horizontal: 58,vertical: 15).w,
|
margin: const EdgeInsets.symmetric(
|
||||||
decoration: BoxDecoration(
|
horizontal: 58,
|
||||||
color: Colors.white.withOpacity(.5),
|
vertical: 15,
|
||||||
),
|
).w,
|
||||||
|
decoration: BoxDecoration(color: Colors.white.withOpacity(.5)),
|
||||||
),
|
),
|
||||||
_buildOptions(),
|
_buildOptions(context),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -86,39 +88,43 @@ class SettingsView extends GetView<SettingsController> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildOptions() {
|
Widget _buildOptions(context) {
|
||||||
return ListView.separated(
|
return Expanded(
|
||||||
shrinkWrap: true,
|
child: ListView.separated(
|
||||||
padding: EdgeInsets.zero,
|
shrinkWrap: true,
|
||||||
itemCount: controller.options.length,
|
padding: EdgeInsets.only(
|
||||||
itemBuilder: (context, index) {
|
bottom: MediaQuery.of(context).padding.bottom + 70.w,
|
||||||
return Material(
|
),
|
||||||
color: Colors.transparent,
|
itemCount: controller.options.length,
|
||||||
child: InkWell(
|
itemBuilder: (context, index) {
|
||||||
onTap: () => controller.settingOptionOnTap(index),
|
return Material(
|
||||||
child: Row(
|
color: Colors.transparent,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
child: InkWell(
|
||||||
children: [
|
onTap: () => controller.settingOptionOnTap(index),
|
||||||
Text(
|
child: Row(
|
||||||
controller.options[index],
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
maxLines: 1,
|
children: [
|
||||||
overflow: TextOverflow.ellipsis,
|
Text(
|
||||||
style: TextStyle(
|
controller.options[index],
|
||||||
color: Colors.white,
|
maxLines: 1,
|
||||||
fontSize: 22.sp,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
style: TextStyle(
|
||||||
)
|
color: Colors.white,
|
||||||
],
|
fontSize: 22.sp,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
);
|
||||||
);
|
},
|
||||||
},
|
separatorBuilder: (context, index) {
|
||||||
separatorBuilder: (context, index) {
|
return Container(
|
||||||
return Container(
|
height: 16.w,
|
||||||
height: 16.w,
|
color: Colors.transparent,
|
||||||
color: Colors.transparent,
|
);
|
||||||
);
|
},
|
||||||
},
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
const appName = 'Wallpaper Genie';
|
const appName = 'ATPaper';
|
||||||
@ -2,7 +2,7 @@ name: wallpaperx
|
|||||||
description: "A new Flutter project."
|
description: "A new Flutter project."
|
||||||
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||||
|
|
||||||
version: 1.0.0
|
version: 1.0.0+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.4.3 <4.0.0'
|
sdk: '>=3.4.3 <4.0.0'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user