Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-035-CoviDefender
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-035
2021-035-CoviDefender
Commits
cd54b311
Commit
cd54b311
authored
Jul 02, 2021
by
GayaniPKarunaratne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add hotelMap
parent
10791252
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
80 additions
and
1 deletion
+80
-1
android/app/src/main/AndroidManifest.xml
android/app/src/main/AndroidManifest.xml
+2
-0
lib/EAnalyzer/EAnalyzerDash.dart
lib/EAnalyzer/EAnalyzerDash.dart
+21
-0
lib/EAnalyzer/HotelMap.dart
lib/EAnalyzer/HotelMap.dart
+34
-0
lib/EAnalyzer/SearchEvent.dart
lib/EAnalyzer/SearchEvent.dart
+1
-1
pubspec.lock
pubspec.lock
+21
-0
pubspec.yaml
pubspec.yaml
+1
-0
No files found.
android/app/src/main/AndroidManifest.xml
View file @
cd54b311
...
...
@@ -3,6 +3,8 @@
<application
android:label=
"covidefender"
android:icon=
"@mipmap/ic_launcher"
>
<meta-data
android:name=
"com.google.android.geo.API_KEY"
android:value=
""
/>
<activity
android:name=
".MainActivity"
android:launchMode=
"singleTop"
...
...
lib/EAnalyzer/EAnalyzerDash.dart
View file @
cd54b311
import
'package:covidefender/EAnalyzer/HospitalDetails.dart'
;
import
'package:covidefender/EAnalyzer/HotelMap.dart'
;
import
'package:covidefender/EAnalyzer/SearchEvent.dart'
;
import
'package:flutter/material.dart'
;
import
'AddLocation.dart'
;
...
...
@@ -156,6 +157,26 @@ class EAnalyzerDash extends StatelessWidget {
],
)
),
Card
(
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
8
)),
elevation:
4
,
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
<
Widget
>[
FlatButton
(
onPressed:
()
{
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
HotelMap
()),
);
},
child:
Image
.
asset
(
'lib/assets/images/feedback80.png'
),
),
Text
(
'Hotel Map'
,
style:
TextStyle
(
fontSize:
20.0
))
],
)
),
],
),
)
...
...
lib/EAnalyzer/HotelMap.dart
0 → 100644
View file @
cd54b311
import
'package:flutter/material.dart'
;
import
'package:google_maps_flutter/google_maps_flutter.dart'
;
class
HotelMap
extends
StatefulWidget
{
@override
_HotelMapState
createState
()
=>
_HotelMapState
();
}
class
_HotelMapState
extends
State
<
HotelMap
>
{
@override
Widget
build
(
BuildContext
context
)
{
return
new
Scaffold
(
appBar:
AppBar
(
backwardsCompatibility:
false
,
backgroundColor:
Color
(
0xFF1B5E20
),
title:
Text
(
"Hotel Google Map"
),
),
body:
Center
(
child:
Container
(
height:
MediaQuery
.
of
(
context
).
size
.
height
,
width:
MediaQuery
.
of
(
context
).
size
.
width
,
child:
GoogleMap
(
initialCameraPosition:
CameraPosition
(
target:
LatLng
(
40.7128
,
-
74.0060
),
zoom:
20.0
,
),
),
),
),
);
}
}
\ No newline at end of file
lib/EAnalyzer/SearchEvent.dart
View file @
cd54b311
...
...
@@ -110,7 +110,7 @@ class _DetailPageState extends State<DetailPage> {
title:
Text
(
widget
.
riskLocation
.
data
()[
"hotelName"
]),
),
body:
Container
(
width:
410
,
width:
MediaQuery
.
of
(
context
).
size
.
width
,
height:
100
,
child:
Card
(
elevation:
8
,
...
...
pubspec.lock
View file @
cd54b311
...
...
@@ -141,6 +141,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
flutter_spinkit:
dependency: "direct main"
description:
...
...
@@ -165,6 +172,20 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
google_maps_flutter:
dependency: "direct main"
description:
name: google_maps_flutter
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.6"
google_maps_flutter_platform_interface:
dependency: transitive
description:
name: google_maps_flutter_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
http:
dependency: "direct main"
description:
...
...
pubspec.yaml
View file @
cd54b311
...
...
@@ -33,6 +33,7 @@ dependencies:
wakelock
:
^0.1.4+1
charts_flutter
:
^0.9.0
flutter_spinkit
:
"
^4.1.2"
google_maps_flutter
:
^2.0.6
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment