pull/18/head
黎超凡 2 years ago
parent 9bf82eb643
commit 82bb9ff03d

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"sqflite","path":"C:\\\\Users\\\\17651\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.0\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"sqflite","path":"C:\\\\Users\\\\17651\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.0\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"sqflite","path":"C:\\\\Users\\\\17651\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.0\\\\","native_build":true,"dependencies":[]}],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"sqflite","dependencies":[]}],"date_created":"2023-10-24 20:01:21.080570","version":"3.13.3"} {"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"sqflite","path":"C:\\\\Users\\\\17651\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.0\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"sqflite","path":"C:\\\\Users\\\\17651\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.0\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"sqflite","path":"C:\\\\Users\\\\17651\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\sqflite-2.3.0\\\\","native_build":true,"dependencies":[]}],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"sqflite","dependencies":[]}],"date_created":"2023-10-31 09:57:27.087857","version":"3.13.3"}

@ -1,6 +0,0 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="main.dart" type="FlutterRunConfigurationType" factoryName="Flutter">
<option name="filePath" value="$PROJECT_DIR$/lib/main.dart" />
<method />
</configuration>
</component>

File diff suppressed because one or more lines are too long

@ -1,4 +1,4 @@
#Fri Oct 20 16:06:00 CST 2023 #Tue Oct 31 09:57:35 CST 2023
base.0=E\:\\travelguideProject\\src\\build\\app\\intermediates\\dex\\debug\\mergeDexDebug\\classes.dex base.0=E\:\\travelguideProject\\src\\build\\app\\intermediates\\dex\\debug\\mergeDexDebug\\classes.dex
renamed.0=classes.dex renamed.0=classes.dex
path.0=classes.dex path.0=classes.dex

@ -1 +1 @@
7a3ed0830b265f22561c3078411920443a5049ad 238bffc8581a468489aaa9de6e605d2f1e9821e5

@ -1,5 +1,8 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:travelguide/travelguideapp/ui/boundary/MuseumInfoPage.dart'; import 'package:travelguide/travelguideapp/ui/boundary/MuseumInfoPage.dart';
import 'package:travelguide/travelguideapp/ui/boundary/CommunityPostPage.dart';
import 'package:travelguide/travelguideapp/ui/boundary/ServicePage.dart';
import 'package:travelguide/travelguideapp/ui/boundary/MapPage.dart';
import 'package:travelguide/travelguideapp/ui/boundary/collection0.dart'; import 'package:travelguide/travelguideapp/ui/boundary/collection0.dart';
import 'package:travelguide/travelguideapp/ui/boundary/collection1.dart'; import 'package:travelguide/travelguideapp/ui/boundary/collection1.dart';
import 'package:travelguide/travelguideapp/ui/boundary/collection2.dart'; import 'package:travelguide/travelguideapp/ui/boundary/collection2.dart';
@ -10,7 +13,7 @@ void main() {
runApp(MaterialApp( runApp(MaterialApp(
initialRoute: '/', // initialRoute: '/', //
routes: { routes: {
'/': (context) => MuseumInfoPage(), // '/'MuseumInfoPage '/': (context) => MyHomePage(),
'/targetPage0': (context) => collection0(), '/targetPage0': (context) => collection0(),
'/targetPage1': (context) => collection1(), '/targetPage1': (context) => collection1(),
'/targetPage2': (context) => collection2(), '/targetPage2': (context) => collection2(),
@ -18,4 +21,56 @@ void main() {
'/targetPage4': (context) => collection4(), '/targetPage4': (context) => collection4(),
}, },
)); ));
} }
class MyHomePage extends StatefulWidget {
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
int _currentIndex = 0;
void _onTabTapped(int index) {
setState(() {
_currentIndex = index;
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: _currentIndex == 0
? MuseumInfoPage()
: _currentIndex == 1
? CommunityPostPage()
: _currentIndex == 2
? ServicePage()
: MapPage(),
bottomNavigationBar: BottomNavigationBar(
currentIndex: _currentIndex,
unselectedItemColor: Colors.black38, //
selectedItemColor: Colors.green, //
items: [
BottomNavigationBarItem(
icon: Icon(Icons.account_balance),
label: '信息展示',
),
BottomNavigationBarItem(
icon: Icon(Icons.camera),
label: '用户社群',
),
BottomNavigationBarItem(
icon: Icon(Icons.dashboard),
label: '服务信息',
),
BottomNavigationBarItem(
icon: Icon(Icons.map),
label: '地图',
),
],
onTap: _onTabTapped,
),
);
}
}

@ -0,0 +1,58 @@
import 'package:flutter/material.dart';
class CommunityPostPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('用户社群'),
backgroundColor: Colors.green,
),
body: Column(
children: <Widget>[
Expanded(
child: ListView.builder(
itemCount: 10,
itemBuilder: (BuildContext context, int index) {
return ListTile(
leading: CircleAvatar(
child: Text('User ${index + 1}',),
),
title: Text('这是第${index + 1}条评论'),
subtitle: Text('这是评论的内容。'),
);
},
),
),
Container(
padding: EdgeInsets.all(10),
child: Row(
children: <Widget>[
const Expanded(
child: TextField(
decoration: InputDecoration(
hintText: '请输入评论内容',
border: OutlineInputBorder(),
),
),
),
SizedBox(width: 10),
ElevatedButton(
child: Text(
'发布',
style: TextStyle(fontSize: 16),
),
onPressed: () {},
style: ElevatedButton.styleFrom(
backgroundColor: Colors.green, // 绿
),
),
],
),
),
],
),
);
}
}

@ -1,6 +1,6 @@
//
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'ManagePage.dart'; import 'ManagePage.dart';
class LoginPage extends StatefulWidget { class LoginPage extends StatefulWidget {
@override @override
_LoginPageState createState() => _LoginPageState(); _LoginPageState createState() => _LoginPageState();
@ -54,7 +54,6 @@ class _LoginPageState extends State<LoginPage> {
), ),
child: Text('登录'), child: Text('登录'),
), ),
], ],
), ),
), ),

@ -1,8 +1,8 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class MapPage extends StatelessWidget { class MapPage extends StatelessWidget {
const MapPage({Key? key});
int currentFloor = 1; //
// //
Widget _buildImage(String imagePath, double height, double verticalOffset) { Widget _buildImage(String imagePath, double height, double verticalOffset) {
return Center( // return Center( //

@ -1,9 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'CollectionListPage.dart'; import 'CollectionListPage.dart';
import 'MapPage.dart';
import 'MuseumInfoExtendPage.dart'; import 'MuseumInfoExtendPage.dart';
import 'LoginPage.dart'; import 'LoginPage.dart';
import 'ServicePage.dart';
void main() { void main() {
runApp(MaterialApp( runApp(MaterialApp(
@ -99,20 +97,6 @@ class _MuseumInfoPageState extends State<MuseumInfoPage> {
), ),
); );
}), }),
_buildCustomButton('服务', 45, 30, () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => ServicePage(),
),
);
}),
_buildCustomButton('地图', 45, 40, () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => MapPage(),
),
);
}),
], ],
), ),
); );

Loading…
Cancel
Save