shas6395 #24
@ -9,7 +9,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "args",
|
"name": "args",
|
||||||
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/args-2.3.0",
|
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/args-2.3.1",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.12"
|
"languageVersion": "2.12"
|
||||||
},
|
},
|
||||||
@ -75,7 +75,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ffi",
|
"name": "ffi",
|
||||||
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-1.1.2",
|
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-1.2.1",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.12"
|
"languageVersion": "2.12"
|
||||||
},
|
},
|
||||||
@ -225,7 +225,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "google_api_headers",
|
"name": "google_api_headers",
|
||||||
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_api_headers-1.2.0+1",
|
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_api_headers-1.3.0",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.12"
|
"languageVersion": "2.12"
|
||||||
},
|
},
|
||||||
@ -273,13 +273,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "google_sign_in_platform_interface",
|
"name": "google_sign_in_platform_interface",
|
||||||
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_platform_interface-2.1.2",
|
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_platform_interface-2.1.3",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.12"
|
"languageVersion": "2.12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "google_sign_in_web",
|
"name": "google_sign_in_web",
|
||||||
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_web-0.10.1+1",
|
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_web-0.10.1+2",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.12"
|
"languageVersion": "2.12"
|
||||||
},
|
},
|
||||||
@ -441,7 +441,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "path_provider_platform_interface",
|
"name": "path_provider_platform_interface",
|
||||||
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_platform_interface-2.0.3",
|
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_platform_interface-2.0.4",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.12"
|
"languageVersion": "2.12"
|
||||||
},
|
},
|
||||||
@ -571,6 +571,30 @@
|
|||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.14"
|
"languageVersion": "2.14"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "webview_flutter",
|
||||||
|
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-3.0.4",
|
||||||
|
"packageUri": "lib/",
|
||||||
|
"languageVersion": "2.14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "webview_flutter_android",
|
||||||
|
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_android-2.8.8",
|
||||||
|
"packageUri": "lib/",
|
||||||
|
"languageVersion": "2.14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "webview_flutter_platform_interface",
|
||||||
|
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_platform_interface-1.8.1",
|
||||||
|
"packageUri": "lib/",
|
||||||
|
"languageVersion": "2.12"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "webview_flutter_wkwebview",
|
||||||
|
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.5",
|
||||||
|
"packageUri": "lib/",
|
||||||
|
"languageVersion": "2.14"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "win32",
|
"name": "win32",
|
||||||
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.5.2",
|
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.5.2",
|
||||||
@ -591,7 +615,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "yaml",
|
"name": "yaml",
|
||||||
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/yaml-3.1.0",
|
"rootUri": "file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/yaml-3.1.1",
|
||||||
"packageUri": "lib/",
|
"packageUri": "lib/",
|
||||||
"languageVersion": "2.12"
|
"languageVersion": "2.12"
|
||||||
},
|
},
|
||||||
@ -602,7 +626,7 @@
|
|||||||
"languageVersion": "2.16"
|
"languageVersion": "2.16"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"generated": "2022-05-17T07:01:31.366070Z",
|
"generated": "2022-05-19T09:19:56.525181Z",
|
||||||
"generator": "pub",
|
"generator": "pub",
|
||||||
"generatorVersion": "2.16.2"
|
"generatorVersion": "2.16.2"
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# For more info see: https://dart.dev/go/dot-packages-deprecation
|
# For more info see: https://dart.dev/go/dot-packages-deprecation
|
||||||
#
|
#
|
||||||
# Generated by pub on 2022-05-19 10:35:11.260003.
|
# Generated by pub on 2022-05-19 11:19:56.493264.
|
||||||
archive:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/archive-3.3.0/lib/
|
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.1/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/
|
async:file:///C:/Users/morte/OneDrive/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/lib/
|
||||||
|
@ -45,7 +45,7 @@ android {
|
|||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||||
applicationId "com.pvt74.sunchaser"
|
applicationId "com.pvt74.sunchaser"
|
||||||
minSdkVersion 21
|
minSdkVersion 32
|
||||||
targetSdkVersion flutter.targetSdkVersion
|
targetSdkVersion flutter.targetSdkVersion
|
||||||
versionCode flutterVersionCode.toInteger()
|
versionCode flutterVersionCode.toInteger()
|
||||||
versionName flutterVersionName
|
versionName flutterVersionName
|
||||||
|
@ -5,7 +5,6 @@ import 'dart:ui';
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'user.dart';
|
|
||||||
import 'HomePage.dart';
|
import 'HomePage.dart';
|
||||||
import 'main.dart';
|
import 'main.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import 'package:flutter_applicationdemo/BottomNavPage.dart';
|
|||||||
import 'package:flutter_applicationdemo/mysql.dart';
|
import 'package:flutter_applicationdemo/mysql.dart';
|
||||||
|
|
||||||
import 'package:flutter_applicationdemo/HomePage.dart';
|
import 'package:flutter_applicationdemo/HomePage.dart';
|
||||||
import '../globals.dart';
|
import '../globals.dart' as globals;
|
||||||
import '../reusables/InputField.dart';
|
import '../reusables/InputField.dart';
|
||||||
import 'user.dart';
|
import 'user.dart';
|
||||||
import '../reusables/returnButton.dart';
|
import '../reusables/returnButton.dart';
|
||||||
@ -28,7 +28,7 @@ class _CreateAccountPageState extends State<CreateAccountPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: pinkBackgroundColor,
|
backgroundColor: globals.PINKBACKGROUND,
|
||||||
leading: ReturnButton(
|
leading: ReturnButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
@ -39,9 +39,10 @@ class _CreateAccountPageState extends State<CreateAccountPage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
backgroundColor: pinkBackgroundColor,
|
backgroundColor: pinkBackgroundColor,
|
||||||
body: SafeArea(
|
|
||||||
|
body: Center(child: SingleChildScrollView(
|
||||||
child: createLoginPageContent(),
|
child: createLoginPageContent(),
|
||||||
),
|
))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,10 +130,10 @@ class _CreateAccountPageState extends State<CreateAccountPage> {
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
"Create Account",
|
"Create Account",
|
||||||
style: TextStyle(color: Colors.black, fontWeight: FontWeight.w400),
|
style: TextStyle(color: Colors.white, fontWeight: FontWeight.w400),
|
||||||
),
|
),
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
backgroundColor: MaterialStateProperty.all(Colors.white),
|
backgroundColor: MaterialStateProperty.all(globals.BUTTONCOLOR),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -150,7 +151,7 @@ class _CreateAccountPageState extends State<CreateAccountPage> {
|
|||||||
for (var row in results) {
|
for (var row in results) {
|
||||||
setState(() {});
|
setState(() {});
|
||||||
loggedInUser = new user(row[0], row[1], row[2]);
|
loggedInUser = new user(row[0], row[1], row[2]);
|
||||||
LOGGED_IN_USER.userID = loggedInUser.userID;
|
globals.LOGGED_IN_USER.userID = loggedInUser.userID;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -5,13 +5,13 @@ import '../mysql.dart';
|
|||||||
import '../HomePage.dart';
|
import '../HomePage.dart';
|
||||||
import '../main.dart';
|
import '../main.dart';
|
||||||
import 'user.dart';
|
import 'user.dart';
|
||||||
import 'package:flutter_applicationdemo/globals.dart';
|
|
||||||
import '../reusables/InputField.dart';
|
import '../reusables/InputField.dart';
|
||||||
import '../reusables/returnButton.dart';
|
import '../reusables/returnButton.dart';
|
||||||
import 'package:flutter_signin_button/flutter_signin_button.dart';
|
import 'package:flutter_signin_button/flutter_signin_button.dart';
|
||||||
import 'GoogleSignInProvider.dart';
|
import 'GoogleSignInProvider.dart';
|
||||||
import 'CreateAccountPage.dart';
|
import 'CreateAccountPage.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
import 'package:flutter_applicationdemo/globals.dart' as globals;
|
||||||
|
|
||||||
class SignInPage extends StatefulWidget {
|
class SignInPage extends StatefulWidget {
|
||||||
@override
|
@override
|
||||||
@ -19,8 +19,6 @@ class SignInPage extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _SignInPageState extends State<SignInPage> {
|
class _SignInPageState extends State<SignInPage> {
|
||||||
Color pinkBackgroundColor = const Color.fromARGB(255, 240, 229, 229);
|
|
||||||
Color textColor = const Color.fromARGB(255, 79, 98, 114);
|
|
||||||
var db = mysql();
|
var db = mysql();
|
||||||
int loggedInID = 0;
|
int loggedInID = 0;
|
||||||
late user loggedInUser;
|
late user loggedInUser;
|
||||||
@ -43,10 +41,11 @@ class _SignInPageState extends State<SignInPage> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
Size size = MediaQuery.of(context).size;
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
backgroundColor: globals.PINKBACKGROUND,
|
||||||
|
resizeToAvoidBottomInset: true,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: pinkBackgroundColor,
|
backgroundColor: globals.PINKBACKGROUND,
|
||||||
leading: ReturnButton(
|
leading: ReturnButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
@ -56,10 +55,7 @@ class _SignInPageState extends State<SignInPage> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
//resizeToAvoidBottomPadding: false,
|
body: Center(child: SingleChildScrollView(
|
||||||
resizeToAvoidBottomInset: false,
|
|
||||||
backgroundColor: pinkBackgroundColor,
|
|
||||||
body: SafeArea(
|
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
@ -82,7 +78,8 @@ class _SignInPageState extends State<SignInPage> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),)
|
||||||
|
|
||||||
// This trailing comma makes auto-formatting nicer for build methods.
|
// This trailing comma makes auto-formatting nicer for build methods.
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -110,13 +107,13 @@ class _SignInPageState extends State<SignInPage> {
|
|||||||
'Sun Chasers',
|
'Sun Chasers',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 50,
|
fontSize: 50,
|
||||||
color: textColor,
|
color: globals.TEXTCOLOR,
|
||||||
fontFamily: 'Sacramento',
|
fontFamily: 'Sacramento',
|
||||||
shadows: const <Shadow>[
|
shadows: <Shadow>[
|
||||||
Shadow(
|
Shadow(
|
||||||
offset: Offset(2, 2),
|
offset: Offset(2, 2),
|
||||||
blurRadius: 10.0,
|
blurRadius: 10.0,
|
||||||
color: Color.fromARGB(255, 0, 0, 0),
|
color: globals.SHADOWCOLOR,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@ -149,7 +146,7 @@ class _SignInPageState extends State<SignInPage> {
|
|||||||
}
|
}
|
||||||
await loginVerification(emailController.text, passwordController.text);
|
await loginVerification(emailController.text, passwordController.text);
|
||||||
if (loggedInID != 0) {
|
if (loggedInID != 0) {
|
||||||
LOGGED_IN_USER = loggedInUser;
|
globals.LOGGED_IN_USER = loggedInUser;
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user