WallPaper_ZZH_Flutter/wallpaper/lib/pages/mypage/mypage_view.dart
2024-05-17 16:29:59 +08:00

44 lines
1.4 KiB
Dart

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:wallpaper/pages/mypage/mypage_controller.dart';
class MyPageView extends GetView <MyPageController> {
const MyPageView({super.key});
@override
Widget build(BuildContext context) {
const title = '我的';
return Scaffold(
appBar: AppBar(
centerTitle: true,
title: const Text(title),
),
body: ListView(
children: <Widget>[
ListTile(
leading: const Icon(Icons.web),
title: const Text('Privacy Policy'),
trailing: const Icon(Icons.arrow_forward_ios),
onTap: () {
controller.goWebview("https://wallpapertoday.mystrikingly.com/privacy",'隐私协议');
},
),
ListTile(
leading: const Icon(Icons.supervisor_account),
title: const Text('User Terms'),
trailing: const Icon(Icons.arrow_forward_ios),
onTap: () {
controller.goWebview("https://wallpapertoday.mystrikingly.com/terms",'用户协议');
},
),
const ListTile(
leading: Icon(Icons.info),
title: Text('App Version'),
trailing: Text("v1.0",style: TextStyle(fontSize: 14),),
),
],
),
);
}
}