把中文替换为英文
This commit is contained in:
parent
d29fdac247
commit
936622b431
@ -1,5 +1,4 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
package="com.example.wallpaper">
|
|
||||||
<application
|
<application
|
||||||
android:label="WallPaper Today"
|
android:label="WallPaper Today"
|
||||||
android:name="${applicationName}"
|
android:name="${applicationName}"
|
||||||
|
|||||||
@ -32,13 +32,13 @@ class DownloadPageController extends GetxController {
|
|||||||
await DownloadManager.saveLocalImage(imgUrl);
|
await DownloadManager.saveLocalImage(imgUrl);
|
||||||
|
|
||||||
//给结果提示框
|
//给结果提示框
|
||||||
EasyLoading.showToast("已保存至相册");
|
EasyLoading.showToast("Saved to Photos");
|
||||||
}
|
}
|
||||||
|
|
||||||
Future <void> setWallpaper(String imgUrl) async {
|
Future <void> setWallpaper(String imgUrl) async {
|
||||||
//应当调用本地的图片方法
|
//应当调用本地的图片方法
|
||||||
await DownloadManager.setWallpaperNative(imgUrl);
|
await DownloadManager.setWallpaperNative(imgUrl);
|
||||||
EasyLoading.showToast("壁纸设置成功");
|
EasyLoading.showToast("Wallpaper set successfully");
|
||||||
}
|
}
|
||||||
|
|
||||||
//删除图片
|
//删除图片
|
||||||
@ -47,7 +47,7 @@ class DownloadPageController extends GetxController {
|
|||||||
DBManager.deleteImg(dataItems[index]);
|
DBManager.deleteImg(dataItems[index]);
|
||||||
// ignore: invalid_use_of_protected_member
|
// ignore: invalid_use_of_protected_member
|
||||||
dataItems.removeAt(index);
|
dataItems.removeAt(index);
|
||||||
EasyLoading.showToast("图片已删除");
|
EasyLoading.showToast("Image deleted");
|
||||||
}
|
}
|
||||||
|
|
||||||
void goLocalScanPage(int index) {
|
void goLocalScanPage(int index) {
|
||||||
|
|||||||
@ -14,7 +14,7 @@ class DownloadPageView extends GetView<DownloadPageController> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
title: const Text("下载"),
|
title: const Text("Download"),
|
||||||
),
|
),
|
||||||
body: bodyView,
|
body: bodyView,
|
||||||
);
|
);
|
||||||
|
|||||||
@ -16,7 +16,7 @@ class HomePageView extends GetView <HomePageController> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
// Get.put(HomePageController);
|
// Get.put(HomePageController);
|
||||||
const title = "壁纸";
|
const title = "Wallpaper";
|
||||||
final Widget bodyView = getBodyWidget();
|
final Widget bodyView = getBodyWidget();
|
||||||
|
|
||||||
// Obx(() => {
|
// Obx(() => {
|
||||||
|
|||||||
@ -20,7 +20,7 @@ class ImgCategoryPageController extends GetxController {
|
|||||||
Future < void> downloadImg(String urlStr) async {
|
Future < void> downloadImg(String urlStr) async {
|
||||||
await DownloadManager.downloadImgWithUrl(urlStr);
|
await DownloadManager.downloadImgWithUrl(urlStr);
|
||||||
//提示框
|
//提示框
|
||||||
EasyLoading.showToast("已下载");
|
EasyLoading.showToast("Downloaded");
|
||||||
}
|
}
|
||||||
|
|
||||||
void goScanView(var index,var dataModel){
|
void goScanView(var index,var dataModel){
|
||||||
@ -30,11 +30,11 @@ class ImgCategoryPageController extends GetxController {
|
|||||||
Future < void> saveImgToAlbum(String imgUrl) async {
|
Future < void> saveImgToAlbum(String imgUrl) async {
|
||||||
await DownloadManager.saveNetworkImage(imgUrl);
|
await DownloadManager.saveNetworkImage(imgUrl);
|
||||||
//给结果提示框
|
//给结果提示框
|
||||||
EasyLoading.showToast("已保存至相册");
|
EasyLoading.showToast("Saved to Photos");
|
||||||
}
|
}
|
||||||
|
|
||||||
Future <void> setWallpaper(String imgUrl) async {
|
Future <void> setWallpaper(String imgUrl) async {
|
||||||
await DownloadManager.setWallpaper(imgUrl);
|
await DownloadManager.setWallpaper(imgUrl);
|
||||||
EasyLoading.showToast("壁纸设置成功");
|
EasyLoading.showToast("Wallpaper set successfully");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -41,14 +41,14 @@ class ImgScanPageController extends GetxController {
|
|||||||
albumPermisonisDenied.value = true;
|
albumPermisonisDenied.value = true;
|
||||||
}
|
}
|
||||||
//提示框
|
//提示框
|
||||||
EasyLoading.showToast("已下载");
|
EasyLoading.showToast("Downloaded");
|
||||||
}
|
}
|
||||||
|
|
||||||
Future < void> saveImgToAlbum() async {
|
Future < void> saveImgToAlbum() async {
|
||||||
String imgUrl = dataModel.data![currentIndex.value].original!;
|
String imgUrl = dataModel.data![currentIndex.value].original!;
|
||||||
await DownloadManager.saveNetworkImage(imgUrl);
|
await DownloadManager.saveNetworkImage(imgUrl);
|
||||||
//给结果提示框
|
//给结果提示框
|
||||||
EasyLoading.showToast("已保存至相册");
|
EasyLoading.showToast("Saved to Photos");
|
||||||
}
|
}
|
||||||
|
|
||||||
void showAppbarAction(){
|
void showAppbarAction(){
|
||||||
@ -66,6 +66,6 @@ class ImgScanPageController extends GetxController {
|
|||||||
Future <void> setWallpaper() async {
|
Future <void> setWallpaper() async {
|
||||||
String imgUrl = dataModel.data![currentIndex.value].original!;
|
String imgUrl = dataModel.data![currentIndex.value].original!;
|
||||||
await DownloadManager.setWallpaper(imgUrl);
|
await DownloadManager.setWallpaper(imgUrl);
|
||||||
EasyLoading.showToast("壁纸设置成功");
|
EasyLoading.showToast("Wallpaper set successfully");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -22,7 +22,7 @@ class ImgScanPageView extends GetView<ImgScanPageController> {
|
|||||||
preferredSize: const Size.fromHeight(44),
|
preferredSize: const Size.fromHeight(44),
|
||||||
child: Obx(() => controller.showAppbar.value == 0 ? Text("") :AppBar(
|
child: Obx(() => controller.showAppbar.value == 0 ? Text("") :AppBar(
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
title: const Text("查看大图"),
|
title: const Text("Enlarge Image"),
|
||||||
|
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
foregroundColor: Colors.white,
|
foregroundColor: Colors.white,
|
||||||
|
|||||||
@ -57,7 +57,7 @@ class LocalImgScanPageController extends GetxController {
|
|||||||
String imgUrl = '$localDir/${dataModel[currentIndex.value].localUrl!}';
|
String imgUrl = '$localDir/${dataModel[currentIndex.value].localUrl!}';
|
||||||
await DownloadManager.saveLocalImage(imgUrl);
|
await DownloadManager.saveLocalImage(imgUrl);
|
||||||
//给结果提示框
|
//给结果提示框
|
||||||
EasyLoading.showToast("已保存至相册");
|
EasyLoading.showToast("Saved to Photos");
|
||||||
}
|
}
|
||||||
|
|
||||||
void showAppbarAction(){
|
void showAppbarAction(){
|
||||||
@ -75,6 +75,6 @@ class LocalImgScanPageController extends GetxController {
|
|||||||
Future <void> setWallpaper() async {
|
Future <void> setWallpaper() async {
|
||||||
String imgUrl = '$localDir/${dataModel[currentIndex.value].localUrl!}';
|
String imgUrl = '$localDir/${dataModel[currentIndex.value].localUrl!}';
|
||||||
await DownloadManager.setWallpaperNative(imgUrl);
|
await DownloadManager.setWallpaperNative(imgUrl);
|
||||||
EasyLoading.showToast("壁纸设置成功");
|
EasyLoading.showToast("Wallpaper set successfully");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -25,7 +25,7 @@ class LocalImgScanPageView extends GetView<LocalImgScanPageController> {
|
|||||||
preferredSize: const Size.fromHeight(44),
|
preferredSize: const Size.fromHeight(44),
|
||||||
child: Obx(() => controller.showAppbar.value == 0 ? Text("") :AppBar(
|
child: Obx(() => controller.showAppbar.value == 0 ? Text("") :AppBar(
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
title: const Text("查看大图"),
|
title: const Text("Enlarge Image"),
|
||||||
|
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
foregroundColor: Colors.white,
|
foregroundColor: Colors.white,
|
||||||
|
|||||||
@ -17,7 +17,7 @@ class MyPageView extends GetView <MyPageController> {
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.web),
|
leading: const Icon(Icons.web),
|
||||||
title: const Text('隐私协议'),
|
title: const Text('Privacy Policy'),
|
||||||
trailing: const Icon(Icons.arrow_forward_ios),
|
trailing: const Icon(Icons.arrow_forward_ios),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
controller.goWebview("https://wallpapertoday.mystrikingly.com/privacy",'隐私协议');
|
controller.goWebview("https://wallpapertoday.mystrikingly.com/privacy",'隐私协议');
|
||||||
@ -25,7 +25,7 @@ class MyPageView extends GetView <MyPageController> {
|
|||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.supervisor_account),
|
leading: const Icon(Icons.supervisor_account),
|
||||||
title: const Text('用户协议'),
|
title: const Text('User Terms'),
|
||||||
trailing: const Icon(Icons.arrow_forward_ios),
|
trailing: const Icon(Icons.arrow_forward_ios),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
controller.goWebview("https://wallpapertoday.mystrikingly.com/terms",'用户协议');
|
controller.goWebview("https://wallpapertoday.mystrikingly.com/terms",'用户协议');
|
||||||
@ -33,7 +33,7 @@ class MyPageView extends GetView <MyPageController> {
|
|||||||
),
|
),
|
||||||
const ListTile(
|
const ListTile(
|
||||||
leading: Icon(Icons.info),
|
leading: Icon(Icons.info),
|
||||||
title: Text('系统版本'),
|
title: Text('App Version'),
|
||||||
trailing: Text("v1.0",style: TextStyle(fontSize: 14),),
|
trailing: Text("v1.0",style: TextStyle(fontSize: 14),),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user