This commit is contained in:
bluesea 2024-05-11 15:16:20 +08:00
parent b660bc4331
commit 24887bd711
6 changed files with 12254 additions and 13 deletions

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@ class HomePageView extends GetView {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: const Text("首页"), title: const Text("壁纸"),
), ),
body: const Center( body: const Center(
child: Text("xxxxx"), child: Text("xxxxx"),

View File

@ -6,12 +6,29 @@ class MyPageView extends GetView {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( const title = '我的';
appBar: AppBar( return MaterialApp(
title: const Text("我的"), title: title,
), home: Scaffold(
body: const Center( appBar: AppBar(
child: Text("我的..."), title: const Text(title),
),
body: ListView(
children: const <Widget>[
ListTile(
leading: Icon(Icons.web),
title: Text('隐私协议'),
),
ListTile(
leading: Icon(Icons.web),
title: Text('用户协议'),
),
ListTile(
leading: Icon(Icons.info),
title: Text('系统版本 v1.0'),
),
],
),
), ),
); );
} }

View File

@ -38,12 +38,16 @@ class TabbarPageView extends GetView <TabbarPageController>{
label: "Home" label: "Home"
), ),
const BottomNavigationBarItem( const BottomNavigationBarItem(
icon: Icon(Icons.book), icon: Icon(Icons.collections),
label: "Collection" label: "收藏"
), ),
const BottomNavigationBarItem( const BottomNavigationBarItem(
icon: Icon(Icons.music_video), icon: Icon(Icons.download),
label: "My" label: "下载"
),
const BottomNavigationBarItem(
icon: Icon(Icons.person),
label: "我的"
), ),
]; ];
} }

View File

@ -0,0 +1,11 @@
import 'package:flutter/services.dart' show rootBundle;
import 'dart:convert';
Future<Map<String, dynamic>> loadWallpaperJsonFromAsset() async {
String jsonStr = await rootBundle.loadString('assets/wallpaper.json');
return jsonDecode(jsonStr);
}
// Map<String, dynamic> jsonData = await loadWallpaperJsonFromAsset();
// String name = jsonData['name'];
// int age = jsonData['age'];

View File

@ -70,7 +70,8 @@ flutter:
uses-material-design: true uses-material-design: true
# To add assets to your application, add an assets section, like this: # To add assets to your application, add an assets section, like this:
# assets: assets:
- assets/wallpaper.json
# - images/a_dot_burr.jpeg # - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg # - images/a_dot_ham.jpeg