|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|
|
|
import 'CollectionListPage.dart';
|
|
|
|
import 'CollectionListPage.dart';
|
|
|
|
import 'MuseumInfoExtendPage.dart';
|
|
|
|
import 'MuseumInfoExtendPage.dart';
|
|
|
|
import 'ServicePage.dart';
|
|
|
|
import 'ServicePage.dart';
|
|
|
|
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
void main() {
|
|
|
|
runApp(MaterialApp(
|
|
|
|
runApp(MaterialApp(
|
|
|
|
home: MuseumInfoPage(),
|
|
|
|
home: MuseumInfoPage(),
|
|
|
@ -14,7 +15,6 @@ class MuseumInfoPage extends StatefulWidget {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class _MuseumInfoPageState extends State<MuseumInfoPage> {
|
|
|
|
class _MuseumInfoPageState extends State<MuseumInfoPage> {
|
|
|
|
|
|
|
|
|
|
|
|
// 用于构建图片的函数
|
|
|
|
// 用于构建图片的函数
|
|
|
|
Widget _buildImage(String imagePath, double height, double verticalOffset) {
|
|
|
|
Widget _buildImage(String imagePath, double height, double verticalOffset) {
|
|
|
|
return Center( // 将图片居中
|
|
|
|
return Center( // 将图片居中
|
|
|
@ -59,7 +59,6 @@ class _MuseumInfoPageState extends State<MuseumInfoPage> {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
return Scaffold(
|
|
|
@ -95,6 +94,5 @@ class _MuseumInfoPageState extends State<MuseumInfoPage> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|