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