YuYouShui_Branch
黎超凡 2 years ago
parent 04929b8e8d
commit 620578a2b4

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

@ -85,6 +85,12 @@
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "2.12" "languageVersion": "2.12"
}, },
{
"name": "photo_view",
"rootUri": "file:///C:/Users/17651/AppData/Local/Pub/Cache/hosted/pub.dev/photo_view-0.14.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{ {
"name": "sky_engine", "name": "sky_engine",
"rootUri": "file:///E:/flutter/bin/cache/pkg/sky_engine", "rootUri": "file:///E:/flutter/bin/cache/pkg/sky_engine",
@ -164,7 +170,7 @@
"languageVersion": "3.1" "languageVersion": "3.1"
} }
], ],
"generated": "2023-10-31T03:02:37.119553Z", "generated": "2023-11-01T12:17:02.466495Z",
"generator": "pub", "generator": "pub",
"generatorVersion": "3.1.1" "generatorVersion": "3.1.1"
} }

@ -46,6 +46,10 @@ path
2.12 2.12
file:///C:/Users/17651/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.8.3/ file:///C:/Users/17651/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.8.3/
file:///C:/Users/17651/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.8.3/lib/ file:///C:/Users/17651/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.8.3/lib/
photo_view
2.12
file:///C:/Users/17651/AppData/Local/Pub/Cache/hosted/pub.dev/photo_view-0.14.0/
file:///C:/Users/17651/AppData/Local/Pub/Cache/hosted/pub.dev/photo_view-0.14.0/lib/
source_span source_span
2.18 2.18
file:///C:/Users/17651/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.0/ file:///C:/Users/17651/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.0/

@ -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-31 18:20:32.895598","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-11-01 20:17:02.632279","version":"3.13.3"}

@ -100,6 +100,13 @@
</list> </list>
</value> </value>
</entry> </entry>
<entry key="photo_view">
<value>
<list>
<option value="$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/photo_view-0.14.0/lib" />
</list>
</value>
</entry>
<entry key="sky_engine"> <entry key="sky_engine">
<value> <value>
<list> <list>
@ -199,6 +206,7 @@
<root url="file://$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/material_color_utilities-0.5.0/lib" /> <root url="file://$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/material_color_utilities-0.5.0/lib" />
<root url="file://$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/meta-1.9.1/lib" /> <root url="file://$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/meta-1.9.1/lib" />
<root url="file://$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.8.3/lib" /> <root url="file://$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.8.3/lib" />
<root url="file://$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/photo_view-0.14.0/lib" />
<root url="file://$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.0/lib" /> <root url="file://$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.0/lib" />
<root url="file://$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/sqflite-2.3.0/lib" /> <root url="file://$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/sqflite-2.3.0/lib" />
<root url="file://$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/sqflite_common-2.5.0/lib" /> <root url="file://$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/sqflite_common-2.5.0/lib" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 KiB

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 218 KiB

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

File diff suppressed because one or more lines are too long

@ -1,4 +1,4 @@
#Tue Oct 31 18:21:21 CST 2023 #Wed Nov 01 20:04:18 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 @@
75975cee94059c2d7b7eccc714e4d060f6429f43 39978587c06f91a9b738e231f7f12eddd962534f

@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';
class MapPage extends StatefulWidget { class MapPage extends StatefulWidget {
const MapPage({Key? key}) : super(key: key); const MapPage({Key? key}) : super(key: key);
@ -15,6 +16,11 @@ class _MapPageState extends State<MapPage> {
'assets/3F.png', 'assets/3F.png',
'assets/4F.png', 'assets/4F.png',
'assets/5F.png', 'assets/5F.png',
'assets/1F-Route.png'
'assets/2F-Route.png'
'assets/3F-Route.png'
'assets/4F-Route.png'
'assets/5F-Route.png'
]; ];
void nextFloor() { void nextFloor() {
@ -33,6 +39,48 @@ class _MapPageState extends State<MapPage> {
} }
} }
void showMapPopup() {
String routeImage;
switch (currentFloor) {
case 0:
routeImage = 'assets/1F-Route.png';
break;
case 1:
routeImage = 'assets/2F-Route.png';
break;
case 2:
routeImage = 'assets/3F-Route.png';
break;
case 3:
routeImage = 'assets/4F-Route.png';
break;
case 4:
routeImage = 'assets/5F-Route.png';
break;
default:
routeImage = ''; //
}
showDialog(
context: context,
builder: (context) {
return AlertDialog(
title: Text('${currentFloor + 1} 楼 - 推荐路线'),
content: Container(
width: double.maxFinite,
height: 300,
child: PhotoView(
imageProvider: AssetImage(routeImage),
backgroundDecoration: BoxDecoration(
color: Colors.white,
),
),
),
);
}
);
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
@ -56,6 +104,15 @@ class _MapPageState extends State<MapPage> {
), ),
], ],
), ),
Column(
children: [
_buildCircularButton(showMapPopup, Icons.map),
Padding(
padding: EdgeInsets.only(bottom: 10),
child: Text('推荐路线', style: TextStyle(fontSize: 16)),
),
],
),
Column( Column(
children: [ children: [
_buildCircularButton(nextFloor, Icons.arrow_forward), // _buildCircularButton(nextFloor, Icons.arrow_forward), //
@ -67,7 +124,6 @@ class _MapPageState extends State<MapPage> {
), ),
], ],
) )
], ],
), ),
); );

@ -107,6 +107,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.8.3" version: "1.8.3"
photo_view:
dependency: "direct main"
description:
name: photo_view
sha256: "8036802a00bae2a78fc197af8a158e3e2f7b500561ed23b4c458107685e645bb"
url: "https://pub.dev"
source: hosted
version: "0.14.0"
sky_engine: sky_engine:
dependency: transitive dependency: transitive
description: flutter description: flutter

@ -14,6 +14,7 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
sqflite: ^2.3.0 # 添加sqflite作为依赖 sqflite: ^2.3.0 # 添加sqflite作为依赖
photo_view: ^0.14.0
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons. # Use with the CupertinoIcons class for iOS style icons.
@ -23,7 +24,6 @@ dependencies:
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
flutter_lints: ^2.0.0 flutter_lints: ^2.0.0
flutter: flutter:

Loading…
Cancel
Save