shas6395 #24
@ -602,7 +602,7 @@
|
||||
"languageVersion": "2.16"
|
||||
}
|
||||
],
|
||||
"generated": "2022-05-17T08:24:36.005738Z",
|
||||
"generated": "2022-05-17T07:01:31.366070Z",
|
||||
"generator": "pub",
|
||||
"generatorVersion": "2.16.2"
|
||||
}
|
||||
|
@ -366,6 +366,22 @@ vector_math
|
||||
2.14
|
||||
file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.1/
|
||||
file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.1/lib/
|
||||
webview_flutter
|
||||
2.14
|
||||
file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-3.0.4/
|
||||
file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-3.0.4/lib/
|
||||
webview_flutter_android
|
||||
2.14
|
||||
file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_android-2.8.8/
|
||||
file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_android-2.8.8/lib/
|
||||
webview_flutter_platform_interface
|
||||
2.12
|
||||
file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_platform_interface-1.8.1/
|
||||
file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_platform_interface-1.8.1/lib/
|
||||
webview_flutter_wkwebview
|
||||
2.14
|
||||
file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.5/
|
||||
file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.5/lib/
|
||||
win32
|
||||
2.15
|
||||
file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.5.2/
|
||||
|
@ -10,12 +10,12 @@ geolocator_android=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\h
|
||||
geolocator_apple=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\geolocator_apple-2.1.3\\
|
||||
geolocator_web=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\geolocator_web-2.1.5\\
|
||||
geolocator_windows=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\geolocator_windows-0.1.1\\
|
||||
google_api_headers=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\google_api_headers-1.2.0+1\\
|
||||
google_api_headers=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\google_api_headers-1.3.0\\
|
||||
google_maps_flutter=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\google_maps_flutter-2.1.5\\
|
||||
google_sign_in=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\google_sign_in-5.3.1\\
|
||||
google_sign_in_android=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\google_sign_in_android-5.2.7\\
|
||||
google_sign_in_ios=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\google_sign_in_ios-5.2.7\\
|
||||
google_sign_in_web=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\google_sign_in_web-0.10.1+1\\
|
||||
google_sign_in_web=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\google_sign_in_web-0.10.1+2\\
|
||||
package_info_plus=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\package_info_plus-1.4.2\\
|
||||
package_info_plus_linux=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\package_info_plus_linux-1.0.5\\
|
||||
package_info_plus_macos=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\package_info_plus_macos-1.3.0\\
|
||||
@ -27,3 +27,6 @@ path_provider_ios=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\ho
|
||||
path_provider_linux=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_linux-2.1.6\\
|
||||
path_provider_macos=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_macos-2.0.6\\
|
||||
path_provider_windows=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_windows-2.0.6\\
|
||||
webview_flutter=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\webview_flutter-3.0.4\\
|
||||
webview_flutter_android=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\webview_flutter_android-2.8.8\\
|
||||
webview_flutter_wkwebview=C:\\Users\\morte\\OneDrive\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\webview_flutter_wkwebview-2.7.5\\
|
||||
|
File diff suppressed because one or more lines are too long
20
.packages
20
.packages
@ -3,9 +3,9 @@
|
||||
#
|
||||
# For more info see: https://dart.dev/go/dot-packages-deprecation
|
||||
#
|
||||
# Generated by pub on 2022-05-17 10:24:35.878079.
|
||||
# Generated by pub on 2022-05-19 10:35:11.260003.
|
||||
archive:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/archive-3.3.0/lib/
|
||||
args:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/args-2.3.0/lib/
|
||||
args:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/args-2.3.1/lib/
|
||||
async:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/lib/
|
||||
boolean_selector:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
|
||||
characters:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0/lib/
|
||||
@ -16,7 +16,7 @@ crypto:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.d
|
||||
cupertino_icons:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.4/lib/
|
||||
dio:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/dio-4.0.6/lib/
|
||||
fake_async:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0/lib/
|
||||
ffi:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-1.1.2/lib/
|
||||
ffi:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-1.2.1/lib/
|
||||
file:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/file-6.1.2/lib/
|
||||
firebase_auth:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-1.4.1/lib/
|
||||
firebase_auth_platform_interface:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-4.3.1/lib/
|
||||
@ -41,7 +41,7 @@ geolocator_platform_interface:file:///C:/Users/morte/OneDrive/Documents/flutter/
|
||||
geolocator_web:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_web-2.1.5/lib/
|
||||
geolocator_windows:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_windows-0.1.1/lib/
|
||||
get:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/get-4.6.3/lib/
|
||||
google_api_headers:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_api_headers-1.2.0+1/lib/
|
||||
google_api_headers:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_api_headers-1.3.0/lib/
|
||||
google_fonts:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_fonts-2.3.2/lib/
|
||||
google_maps_flutter:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-2.1.5/lib/
|
||||
google_maps_flutter_platform_interface:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter_platform_interface-2.1.5/lib/
|
||||
@ -49,8 +49,8 @@ google_maps_webservice:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-ca
|
||||
google_sign_in:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-5.3.1/lib/
|
||||
google_sign_in_android:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_android-5.2.7/lib/
|
||||
google_sign_in_ios:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_ios-5.2.7/lib/
|
||||
google_sign_in_platform_interface:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_platform_interface-2.1.2/lib/
|
||||
google_sign_in_web:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_web-0.10.1+1/lib/
|
||||
google_sign_in_platform_interface:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_platform_interface-2.1.3/lib/
|
||||
google_sign_in_web:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_web-0.10.1+2/lib/
|
||||
http:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.13.4/lib/
|
||||
http_parser:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/http_parser-4.0.0/lib/
|
||||
image:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/image-3.1.3/lib/
|
||||
@ -77,7 +77,7 @@ path_provider_android:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cac
|
||||
path_provider_ios:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.9/lib/
|
||||
path_provider_linux:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.6/lib/
|
||||
path_provider_macos:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.6/lib/
|
||||
path_provider_platform_interface:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_platform_interface-2.0.3/lib/
|
||||
path_provider_platform_interface:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_platform_interface-2.0.4/lib/
|
||||
path_provider_windows:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.6/lib/
|
||||
petitparser:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/petitparser-4.4.0/lib/
|
||||
platform:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.1.0/lib/
|
||||
@ -99,8 +99,12 @@ test_api:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub
|
||||
typed_data:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0/lib/
|
||||
universal_io:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/universal_io-2.0.4/lib/
|
||||
vector_math:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.1/lib/
|
||||
webview_flutter:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-3.0.4/lib/
|
||||
webview_flutter_android:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_android-2.8.8/lib/
|
||||
webview_flutter_platform_interface:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_platform_interface-1.8.1/lib/
|
||||
webview_flutter_wkwebview:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.5/lib/
|
||||
win32:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.5.2/lib/
|
||||
xdg_directories:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/xdg_directories-0.2.0+1/lib/
|
||||
xml:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/xml-5.3.1/lib/
|
||||
yaml:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/yaml-3.1.0/lib/
|
||||
yaml:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/yaml-3.1.1/lib/
|
||||
flutter_applicationdemo:lib/
|
||||
|
@ -3,6 +3,7 @@ import 'package:google_maps_flutter_platform_interface/src/types/camera.dart';
|
||||
import 'Map.dart';
|
||||
import 'FavoritePage.dart';
|
||||
import 'SettingsPage.dart';
|
||||
import 'globals.dart' as globals;
|
||||
|
||||
|
||||
class BottomNavPage extends StatefulWidget {
|
||||
@ -24,8 +25,8 @@ class BottomNavPageState extends State<BottomNavPage> {
|
||||
return Scaffold(
|
||||
body: screens[currentIndex],
|
||||
bottomNavigationBar: BottomNavigationBar(
|
||||
backgroundColor: Color.fromARGB(255, 190, 146, 160),
|
||||
selectedItemColor: Colors.black,
|
||||
backgroundColor: globals.BACKGROUNDCOLOR,
|
||||
selectedItemColor: globals.ITEMCOLOR,
|
||||
currentIndex: currentIndex,
|
||||
onTap: (index) => setState( () => currentIndex = index),
|
||||
items: const[
|
||||
|
@ -11,6 +11,7 @@ import 'mysql.dart';
|
||||
import 'package:flutter_applicationdemo/login/user.dart';
|
||||
import 'globals.dart' as globals;
|
||||
|
||||
|
||||
class HomePage extends StatefulWidget {
|
||||
const HomePage({Key? key}) : super(key: key);
|
||||
|
||||
@ -19,13 +20,10 @@ class HomePage extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _HomePageState extends State<HomePage> {
|
||||
Color buttonColor = const Color.fromARGB(204, 172, 123, 132);
|
||||
Color pinkBackgroundColor = const Color.fromARGB(255, 240, 229, 229);
|
||||
Color textColor = const Color.fromARGB(255, 79, 98, 114);
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: pinkBackgroundColor,
|
||||
backgroundColor: globals.PINKBACKGROUND,
|
||||
body: SafeArea(
|
||||
child: Center(
|
||||
child: Column(children: <Widget>[
|
||||
@ -35,7 +33,7 @@ class _HomePageState extends State<HomePage> {
|
||||
'Sun Chasers',
|
||||
style: TextStyle(
|
||||
fontSize: 50,
|
||||
color: textColor,
|
||||
color: globals.TEXTCOLOR,
|
||||
fontFamily: 'Sacramento',
|
||||
shadows: <Shadow>[
|
||||
Shadow(
|
||||
@ -52,12 +50,12 @@ class _HomePageState extends State<HomePage> {
|
||||
style: TextStyle(
|
||||
fontSize: 32,
|
||||
fontFamily: 'Sacramento',
|
||||
color: textColor,
|
||||
color: globals.TEXTCOLOR,
|
||||
shadows: <Shadow>[
|
||||
Shadow(
|
||||
offset: Offset(2, 2),
|
||||
blurRadius: 12.5,
|
||||
color: Color.fromARGB(255, 0, 0, 0),
|
||||
color: globals.SHADOWCOLOR,
|
||||
),
|
||||
]
|
||||
),
|
||||
@ -67,7 +65,7 @@ class _HomePageState extends State<HomePage> {
|
||||
child: ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
fixedSize: const Size(200, 200),
|
||||
primary: buttonColor,
|
||||
primary: globals.BUTTONCOLOR,
|
||||
elevation: 100,
|
||||
shape: const CircleBorder(),
|
||||
),
|
||||
@ -77,7 +75,7 @@ class _HomePageState extends State<HomePage> {
|
||||
MaterialPageRoute(builder: (context) => BottomNavPage()), //Replace Container() with call to account-page.
|
||||
);
|
||||
},
|
||||
child: const Text(
|
||||
child: Text(
|
||||
'FIND SPOT BY LOCATION',
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
@ -87,7 +85,7 @@ class _HomePageState extends State<HomePage> {
|
||||
Shadow(
|
||||
offset: Offset(2, 2),
|
||||
blurRadius: 10.0,
|
||||
color: Color.fromARGB(255, 0, 0, 0),
|
||||
color: globals.SHADOWCOLOR,
|
||||
),
|
||||
]
|
||||
),
|
||||
@ -110,7 +108,7 @@ class _HomePageState extends State<HomePage> {
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
fixedSize: const Size(200, 50),
|
||||
primary: buttonColor,
|
||||
primary: globals.BUTTONCOLOR,
|
||||
elevation: 100,
|
||||
),
|
||||
onPressed: () {
|
||||
@ -119,7 +117,7 @@ class _HomePageState extends State<HomePage> {
|
||||
MaterialPageRoute(builder: (context) => SignInPage()), //Replace Container() with call to Map-page.
|
||||
);
|
||||
},
|
||||
child: const Text('Sign in',
|
||||
child: Text('Sign in',
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
color: Colors.white,
|
||||
@ -127,7 +125,7 @@ class _HomePageState extends State<HomePage> {
|
||||
Shadow(
|
||||
offset: Offset(2, 2),
|
||||
blurRadius: 10.0,
|
||||
color: Color.fromARGB(255, 0, 0, 0),
|
||||
color: globals.SHADOWCOLOR,
|
||||
),
|
||||
])
|
||||
),
|
||||
@ -136,7 +134,7 @@ class _HomePageState extends State<HomePage> {
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
fixedSize: const Size(200, 50),
|
||||
primary: buttonColor,
|
||||
primary: globals.BUTTONCOLOR,
|
||||
elevation: 100,
|
||||
),
|
||||
onPressed: () {
|
||||
@ -167,7 +165,7 @@ class _HomePageState extends State<HomePage> {
|
||||
return ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
fixedSize: const Size(200, 50),
|
||||
primary: buttonColor,
|
||||
primary: globals.BUTTONCOLOR,
|
||||
elevation: 100,
|
||||
),
|
||||
onPressed: () {
|
||||
@ -177,7 +175,7 @@ class _HomePageState extends State<HomePage> {
|
||||
MaterialPageRoute(builder: (context) => HomePage()), //Replace Container() with call to Map-page.
|
||||
);
|
||||
},
|
||||
child: const Text('Log out',
|
||||
child: Text('Log out',
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
color: Colors.white,
|
||||
@ -185,7 +183,7 @@ class _HomePageState extends State<HomePage> {
|
||||
Shadow(
|
||||
offset: Offset(2, 2),
|
||||
blurRadius: 10.0,
|
||||
color: Color.fromARGB(255, 0, 0, 0),
|
||||
color: globals.SHADOWCOLOR,
|
||||
),
|
||||
])
|
||||
),
|
||||
|
52
lib/ShadowMap.dart
Normal file
52
lib/ShadowMap.dart
Normal file
@ -0,0 +1,52 @@
|
||||
import 'package:webview_flutter/webview_flutter.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
//This widget can be called like: ShadowMap(latitude: 59.27439, longitude: 18.03250);
|
||||
|
||||
class ShadowMap extends StatefulWidget {
|
||||
final double latitude;
|
||||
final double longitude;
|
||||
|
||||
const ShadowMap({
|
||||
Key? key,
|
||||
required this.latitude,
|
||||
required this.longitude,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<ShadowMap> createState() => _ShadowMapState();
|
||||
}
|
||||
|
||||
class _ShadowMapState extends State<ShadowMap> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var lat = widget.latitude;
|
||||
var lng = widget.longitude;
|
||||
var dateInMilliseconds = DateTime.now().millisecondsSinceEpoch.toString();
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
centerTitle: true,
|
||||
backgroundColor: const Color.fromARGB(204, 172, 123, 132),
|
||||
title: Text(
|
||||
'Sun Chasers',
|
||||
style: TextStyle(
|
||||
fontSize: 42,
|
||||
color: const Color.fromARGB(255, 79, 98, 114),
|
||||
fontFamily: 'Sacramento',
|
||||
shadows: <Shadow>[
|
||||
Shadow(
|
||||
offset: Offset(2, 2),
|
||||
blurRadius: 10.0,
|
||||
color: Color.fromARGB(255, 0, 0, 0),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
body: WebView(
|
||||
initialUrl: 'https://app.shadowmap.org/?lat=$lat&lng=$lng&zoom=17&basemap=map&time=$dateInMilliseconds&vq=2',
|
||||
javascriptMode: JavascriptMode.unrestricted,
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
@ -1,8 +1,20 @@
|
||||
import 'Venue.dart';
|
||||
import 'package:flutter_applicationdemo/login/user.dart';
|
||||
import '../login/user.dart';
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'user.dart';
|
||||
import 'HomePage.dart';
|
||||
import 'main.dart';
|
||||
|
||||
user LOGGED_IN_USER = user(0, "", "");
|
||||
Color BACKGROUNDCOLOR = const Color.fromARGB(255, 190, 146, 160);
|
||||
Color ITEMCOLOR = const Color.fromARGB(255, 0, 0, 0);
|
||||
Color BUTTONCOLOR = const Color.fromARGB(204, 172, 123, 132);
|
||||
Color PINKBACKGROUND = const Color.fromARGB(255, 240, 229, 229);
|
||||
Color TEXTCOLOR = const Color.fromARGB(255, 79, 98, 114);
|
||||
Color SHADOWCOLOR = const Color.fromARGB(255, 0, 0, 0);
|
||||
Color TEXTWHITE = const Color.fromARGB(0, 0, 0, 0);
|
||||
late List<Venue> VENUES;
|
||||
|
28
pubspec.lock
28
pubspec.lock
@ -658,6 +658,34 @@ packages:
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.1.1"
|
||||
webview_flutter:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: webview_flutter
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "3.0.4"
|
||||
webview_flutter_android:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: webview_flutter_android
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.8.8"
|
||||
webview_flutter_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: webview_flutter_platform_interface
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.8.1"
|
||||
webview_flutter_wkwebview:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: webview_flutter_wkwebview
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.7.5"
|
||||
win32:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -45,6 +45,7 @@ dependencies:
|
||||
google_fonts: ^2.3.2
|
||||
flutter_signin_button: ^2.0.0
|
||||
provider: ^5.0.0
|
||||
webview_flutter: ^3.0.0
|
||||
|
||||
#Google Sign-in
|
||||
firebase_auth: ^1.1.4
|
||||
|
Loading…
x
Reference in New Issue
Block a user