文档修改

ZhuQingRui_Branch
黎超凡 2 years ago
parent 460b8736b4
commit 7d9e78548f

File diff suppressed because one or more lines are too long

@ -1 +1 @@
{"inputs":["E:\\travelguideProject\\src\\.dart_tool\\flutter_build\\73ad0c3a968a1eeb9647bffe91993129\\app.dill","E:\\flutter\\packages\\flutter_tools\\lib\\src\\build_system\\targets\\icon_tree_shaker.dart","E:\\flutter\\bin\\internal\\engine.version","E:\\flutter\\bin\\internal\\engine.version","E:\\flutter\\bin\\internal\\engine.version","E:\\flutter\\bin\\internal\\engine.version","E:\\travelguideProject\\src\\pubspec.yaml","E:\\travelguideProject\\src\\assets\\Collection_Preview.jpg","E:\\travelguideProject\\src\\assets\\Museum_Preview.jpg","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\cupertino_icons-1.0.6\\assets\\CupertinoIcons.ttf","E:\\flutter\\bin\\cache\\artifacts\\material_fonts\\MaterialIcons-Regular.otf","E:\\flutter\\packages\\flutter\\lib\\src\\material\\shaders\\ink_sparkle.frag","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\async-2.11.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\boolean_selector-2.1.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\characters-1.3.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\clock-1.1.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\collection-1.17.2\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\cupertino_icons-1.0.6\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\fake_async-1.3.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\flutter_lints-2.0.3\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\lints-2.1.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\matcher-0.12.16\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\material_color_utilities-0.5.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\meta-1.9.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\path-1.8.3\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\source_span-1.10.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\stack_trace-1.11.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\stream_channel-2.1.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\string_scanner-1.2.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\term_glyph-1.2.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\test_api-0.6.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\vector_math-2.1.4\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\web-0.1.4-beta\\LICENSE","E:\\flutter\\bin\\cache\\pkg\\sky_engine\\LICENSE","E:\\flutter\\packages\\flutter\\LICENSE","E:\\travelguideProject\\src\\DOES_NOT_EXIST_RERUN_FOR_WILDCARD647808266"],"outputs":["E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\vm_snapshot_data","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\isolate_snapshot_data","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\kernel_blob.bin","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\assets/Collection_Preview.jpg","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\assets/Museum_Preview.jpg","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\packages/cupertino_icons/assets/CupertinoIcons.ttf","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\fonts/MaterialIcons-Regular.otf","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\shaders/ink_sparkle.frag","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\AssetManifest.json","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\AssetManifest.bin","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\FontManifest.json","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\NOTICES.Z"]}
{"inputs":["E:\\travelguideProject\\src\\.dart_tool\\flutter_build\\73ad0c3a968a1eeb9647bffe91993129\\app.dill","E:\\flutter\\packages\\flutter_tools\\lib\\src\\build_system\\targets\\icon_tree_shaker.dart","E:\\flutter\\bin\\internal\\engine.version","E:\\flutter\\bin\\internal\\engine.version","E:\\flutter\\bin\\internal\\engine.version","E:\\flutter\\bin\\internal\\engine.version","E:\\travelguideProject\\src\\pubspec.yaml","E:\\travelguideProject\\src\\assets\\Collection_Preview.jpg","E:\\travelguideProject\\src\\assets\\Museum_Preview.jpg","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\cupertino_icons-1.0.6\\assets\\CupertinoIcons.ttf","E:\\flutter\\bin\\cache\\artifacts\\material_fonts\\MaterialIcons-Regular.otf","E:\\flutter\\packages\\flutter\\lib\\src\\material\\shaders\\ink_sparkle.frag","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\async-2.11.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\boolean_selector-2.1.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\characters-1.3.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\clock-1.1.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\collection-1.17.2\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\cupertino_icons-1.0.6\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\fake_async-1.3.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\flutter_lints-2.0.3\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\lints-2.1.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\matcher-0.12.16\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\material_color_utilities-0.5.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\meta-1.9.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\path-1.8.3\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\source_span-1.10.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\stack_trace-1.11.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\stream_channel-2.1.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\string_scanner-1.2.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\term_glyph-1.2.1\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\test_api-0.6.0\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\vector_math-2.1.4\\LICENSE","C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\web-0.1.4-beta\\LICENSE","E:\\flutter\\bin\\cache\\pkg\\sky_engine\\LICENSE","E:\\flutter\\packages\\flutter\\LICENSE","E:\\travelguideProject\\src\\DOES_NOT_EXIST_RERUN_FOR_WILDCARD706324601"],"outputs":["E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\vm_snapshot_data","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\isolate_snapshot_data","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\kernel_blob.bin","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\assets/Collection_Preview.jpg","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\assets/Museum_Preview.jpg","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\packages/cupertino_icons/assets/CupertinoIcons.ttf","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\fonts/MaterialIcons-Regular.otf","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\shaders/ink_sparkle.frag","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\AssetManifest.json","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\AssetManifest.bin","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\FontManifest.json","E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\NOTICES.Z"]}

@ -1 +1 @@
E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\assets/Collection_Preview.jpg E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\assets/Museum_Preview.jpg E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\packages/cupertino_icons/assets/CupertinoIcons.ttf E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\fonts/MaterialIcons-Regular.otf E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\shaders/ink_sparkle.frag E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\AssetManifest.json E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\AssetManifest.bin E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\FontManifest.json E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\NOTICES.Z: E:\\travelguideProject\\src\\pubspec.yaml E:\\travelguideProject\\src\\assets\\Collection_Preview.jpg E:\\travelguideProject\\src\\assets\\Museum_Preview.jpg C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\cupertino_icons-1.0.6\\assets\\CupertinoIcons.ttf E:\\flutter\\bin\\cache\\artifacts\\material_fonts\\MaterialIcons-Regular.otf E:\\flutter\\packages\\flutter\\lib\\src\\material\\shaders\\ink_sparkle.frag C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\async-2.11.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\boolean_selector-2.1.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\characters-1.3.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\clock-1.1.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\collection-1.17.2\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\cupertino_icons-1.0.6\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\fake_async-1.3.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\flutter_lints-2.0.3\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\lints-2.1.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\matcher-0.12.16\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\material_color_utilities-0.5.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\meta-1.9.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\path-1.8.3\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\source_span-1.10.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\stack_trace-1.11.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\stream_channel-2.1.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\string_scanner-1.2.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\term_glyph-1.2.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\test_api-0.6.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\vector_math-2.1.4\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\web-0.1.4-beta\\LICENSE E:\\flutter\\bin\\cache\\pkg\\sky_engine\\LICENSE E:\\flutter\\packages\\flutter\\LICENSE E:\\travelguideProject\\src\\DOES_NOT_EXIST_RERUN_FOR_WILDCARD647808266
E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\assets/Collection_Preview.jpg E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\assets/Museum_Preview.jpg E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\packages/cupertino_icons/assets/CupertinoIcons.ttf E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\fonts/MaterialIcons-Regular.otf E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\shaders/ink_sparkle.frag E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\AssetManifest.json E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\AssetManifest.bin E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\FontManifest.json E:\\travelguideProject\\src\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\NOTICES.Z: E:\\travelguideProject\\src\\pubspec.yaml E:\\travelguideProject\\src\\assets\\Collection_Preview.jpg E:\\travelguideProject\\src\\assets\\Museum_Preview.jpg C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\cupertino_icons-1.0.6\\assets\\CupertinoIcons.ttf E:\\flutter\\bin\\cache\\artifacts\\material_fonts\\MaterialIcons-Regular.otf E:\\flutter\\packages\\flutter\\lib\\src\\material\\shaders\\ink_sparkle.frag C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\async-2.11.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\boolean_selector-2.1.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\characters-1.3.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\clock-1.1.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\collection-1.17.2\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\cupertino_icons-1.0.6\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\fake_async-1.3.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\flutter_lints-2.0.3\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\lints-2.1.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\matcher-0.12.16\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\material_color_utilities-0.5.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\meta-1.9.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\path-1.8.3\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\source_span-1.10.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\stack_trace-1.11.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\stream_channel-2.1.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\string_scanner-1.2.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\term_glyph-1.2.1\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\test_api-0.6.0\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\vector_math-2.1.4\\LICENSE C:\\Users\\17651\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\web-0.1.4-beta\\LICENSE E:\\flutter\\bin\\cache\\pkg\\sky_engine\\LICENSE E:\\flutter\\packages\\flutter\\LICENSE E:\\travelguideProject\\src\\DOES_NOT_EXIST_RERUN_FOR_WILDCARD706324601

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -152,7 +152,7 @@
"languageVersion": "3.1"
}
],
"generated": "2023-09-26T12:33:16.596584Z",
"generated": "2023-09-26T15:44:29.507829Z",
"generator": "pub",
"generatorVersion": "3.1.1"
}

@ -3,7 +3,7 @@
<component name="FrameworkDetectionExcludesConfiguration">
<type id="android" />
</component>
<component name="ProjectRootManager">
<component name="ProjectRootManager" version="2" languageLevel="JDK_16" project-jdk-name="Android API 33, extension level 5 Platform" project-jdk-type="Android SDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
<component name="SuppressABINotification">

File diff suppressed because one or more lines are too long

@ -1,4 +1,4 @@
#Tue Sep 26 20:33:33 CST 2023
#Wed Sep 27 08:07:06 CST 2023
base.0=E\:\\travelguideProject\\src\\build\\app\\intermediates\\dex\\debug\\mergeDexDebug\\classes.dex
renamed.0=classes.dex
path.0=classes.dex

@ -1 +1 @@
258726fcbf8eb3d9a9191caf6ae59a5457e60466
af1b225dfca860829f445480b78cfe85a8c5a015

@ -0,0 +1,121 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'collection1.dart';
import 'collection2.dart';
import 'collection3.dart';
import 'collection4.dart';
import 'collection0.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
initialRoute: '/', //
routes: {
'/': (context) => CollectionListPage(), //
'/targetPage0': (context) => collection0(), // 11
'/targetPage1': (context) => collection1(), // 11
'/targetPage2': (context) => collection2(), // 22
'/targetPage3': (context) => collection3(),
'/targetPage4': (context) => collection4(),
//
},
);
}
}
class CollectionListPage extends StatefulWidget {
@override
_CollectionListPageState createState() => _CollectionListPageState();
}
class _CollectionListPageState extends State<CollectionListPage> {
TextEditingController _searchController = TextEditingController();
List<String> items = ["西周 太保鼎", "几何纹豆", "蟠虺纹钟", "郑子石鼎", "嬴霝德壶"];
List<String> filteredItems = [];
@override
void initState() {
super.initState();
filteredItems.addAll(items);
_searchController.addListener(_onSearchTextChanged);
}
void _onSearchTextChanged() {
setState(() {
filteredItems = items
.where((item) =>
item.toLowerCase().contains(_searchController.text.toLowerCase()))
.toList();
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('馆藏列表'),
backgroundColor: Colors.green,
),
body: CustomScrollView(
slivers: <Widget>[
SliverAppBar(
expandedHeight: 100,
floating: false,
pinned: true,
flexibleSpace: Column(
children: [
Container(
padding: EdgeInsets.all(16.0),
child: TextField(
controller: _searchController,
decoration: InputDecoration(
labelText: '搜索',
hintText: '输入搜索词',
prefixIcon: Icon(
Icons.search,
color: Colors.green, //
),
labelStyle: TextStyle(
color: Colors.green, //
),
focusedBorder: UnderlineInputBorder(
borderSide:
BorderSide(color: Colors.green), // 线绿
),
),
),
),
],
),
backgroundColor: Colors.white,
),
SliverList(
delegate: SliverChildBuilderDelegate(
(BuildContext context, int index) {
return InkWell(
onTap: () {
Navigator.pushNamed(
context, '/targetPage$index'); // 1
//
print('点击了列表项 $index');
},
child: ListTile(
title: Text(filteredItems[index]),
),
);
},
childCount: filteredItems.length,
),
),
],
),
);
}
@override
void dispose() {
_searchController.dispose();
super.dispose();
}
}

@ -0,0 +1,32 @@
import 'package:flutter/material.dart';
class MuseumInfoExtendPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('天津博物馆'),
backgroundColor: Colors.green
),
body: Center(
child: Text(
'天津博物馆(天津美术馆、李叔同故居纪念\n'
'位于天津市河西区平江道62号是展示\n'
'中国古代艺术及天津城市发展历史的大型艺\n'
'术历史类综合性博物,是天津地区最大的集\n'
'收藏、保护、研究、陈列、教育为一体的大\n'
'型公益性文化机构和对外文化交流的窗口。\n'
'天津博物馆的前身可追溯至民国七年1918\n'
'6月1日正式成立了天津博物院2004\n'
'年由原天津市艺术博物馆和天津市历史博物\n'
'馆合并组建2007年底天津博物馆旧馆对\n'
'外免费开放2008年天津博物馆新馆开工\n'
'建设2012年5月天津博物馆新馆建成对\n'
'外开放。\n',
style: TextStyle(//
fontSize: 18,
),
),
),
);
}
}

@ -1,4 +1,6 @@
import 'package:flutter/material.dart';
import 'CollectionListPage.dart';
import 'MuseumInfoExtendPage.dart';
void main() {
runApp(MaterialApp(
@ -33,6 +35,51 @@ class _MuseumInfoPageState extends State<MuseumInfoPage> {
),
];
//
Widget _buildImage(String imagePath, double height, double verticalOffset) {
return Center( //
child: SizedBox(
height: height, // 使
child: Transform.translate(
offset: Offset(0, verticalOffset), // 使
child: Transform.scale(
scale: 0.9,
child: Image.asset(
imagePath,
),
),
),
),
);
}
Widget _buildCustomButton(String buttonText, double height, double verticalOffset, void Function() onPressed) {
return SizedBox(
height: height, //
child: Transform.translate(
offset: Offset(0, verticalOffset), //
child: ElevatedButton(
onPressed: onPressed, //
style: ElevatedButton.styleFrom(
backgroundColor: Colors.green, // 绿
padding: const EdgeInsets.symmetric(
horizontal: 12,
vertical: 10,
),
),
child: Text(
buttonText, //
style: TextStyle(
color: Colors.white, //
fontSize: 18, // 18
),
),
),
),
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
@ -43,109 +90,21 @@ class _MuseumInfoPageState extends State<MuseumInfoPage> {
backgroundColor: Colors.white,
body: Column(
children: [
SizedBox(
height: 250,
child: Transform.translate(
offset: const Offset(0, -30),
child: Transform.scale(
scale: 0.7,
child: Image.asset(
'assets/Museum_Preview.jpg',
),
_buildImage('assets/Museum_Preview.jpg', 220, 10),
_buildCustomButton('查看博物馆信息', 45, 10, () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => MuseumInfoExtendPage(),
),
),
),
SizedBox(
height: 30,
child: Transform.translate(
offset: const Offset(0, -60),
child: const Text(
'博 物 馆 预 览 图',
style: TextStyle(
color: Colors.black,
fontSize: 22,
),
);
}),
_buildCustomButton('查看馆藏信息', 45, 20, () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => CollectionListPage(),
),
),
),
SizedBox(
height: 45,
child: Transform.translate(
offset: const Offset(0,-40),
child: ElevatedButton(
onPressed: () {
},
style: ElevatedButton.styleFrom(
padding: const EdgeInsets.symmetric(
horizontal: 12,
vertical: 10
),
),
child: const Text(
'查看博物馆详细信息',
style: TextStyle(
color: Colors.white,
fontSize: 18,
),
),
),
),
),
const Divider(
thickness: 1,
color: Colors.black38,
height: 3,
),
SizedBox(
height: 150,
child: Transform.translate(
offset: const Offset(0, 20),
child: Transform.scale(
scale: 1.2,
child: Image.asset(
'assets/Collection_Preview.jpg',
),
),
),
),
SizedBox(
height: 30,
child: Transform.translate(
offset: const Offset(0, 45),
child: const Text(
'馆 藏 预 览 图',
style: TextStyle(
color: Colors.black,
fontSize: 20,
),
),
),
),
SizedBox(
height: 45,
child: Transform.translate(
offset: const Offset(0,60),
child: ElevatedButton(
onPressed: () {
},
style: ElevatedButton.styleFrom(
padding: const EdgeInsets.symmetric(
horizontal: 12,
vertical: 10
),
),
child: const Text(
'查看馆藏详细信息',
style: TextStyle(
color: Colors.white,
fontSize: 18,
),
),
),
),
),
);
}),
],
),
bottomNavigationBar: BottomNavigationBar(

@ -0,0 +1,19 @@
import 'package:flutter/material.dart';
class collection0 extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('西周 太保鼎'),
backgroundColor: Colors.green
),
body: Center(
child: Text(
'西周公元前1046-前771\n'
'通高57.6厘米 口长35.8厘米 宽22.8厘米\n'
),
),
);
}
}

@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
class collection1 extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('几何纹豆'),
backgroundColor: Colors.green
),
body: Center(
child: Text( '战国 二级\n'
'口径17.4厘米 高18.9厘米 器高12.7厘米 盖高7.9厘米\n'),
),
);
}
}

@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
class collection2 extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('蟠虺纹钟'),
backgroundColor: Colors.green
),
body: Center(
child: Text( '春秋 二级\n'
'通高48.4厘米 口横26厘米\n'),
),
);
}
}

@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
class collection3 extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('郑子石鼎'),
backgroundColor: Colors.green
),
body: Center(
child: Text( '春秋 三级\n'
'高25.8厘米 口径29.1厘米\n'),
),
);
}
}

@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
class collection4 extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('嬴霝德壶'),
backgroundColor: Colors.green
),
body: Center(
child: Text( '西周 一级\n'
'高44.6厘米 口径14.5厘米\n'),
),
);
}
}
Loading…
Cancel
Save