-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from michaelfromyeg/ui
UI changes
- Loading branch information
Showing
29 changed files
with
935 additions
and
519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
[ | ||
{ | ||
"elementType": "geometry", | ||
"stylers": [ | ||
{ | ||
"color": "#1d2c4d" | ||
} | ||
] | ||
}, | ||
{ | ||
"elementType": "labels.text.fill", | ||
"stylers": [ | ||
{ | ||
"color": "#8ec3b9" | ||
} | ||
] | ||
}, | ||
{ | ||
"elementType": "labels.text.stroke", | ||
"stylers": [ | ||
{ | ||
"color": "#1a3646" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "poi", | ||
"stylers": [ | ||
{ | ||
"visibility": "off" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "road", | ||
"elementType": "geometry", | ||
"stylers": [ | ||
{ | ||
"color": "#304a7d" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "road", | ||
"elementType": "labels.text", | ||
"stylers": [ | ||
{ | ||
"visibility": "off" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "road.local", | ||
"elementType": "labels", | ||
"stylers": [ | ||
{ | ||
"visibility": "on" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "transit", | ||
"stylers": [ | ||
{ | ||
"visibility": "off" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "administrative.land_parcel", | ||
"stylers": [ | ||
{ | ||
"visibility": "off" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "administrative.neighborhood", | ||
"stylers": [ | ||
{ | ||
"visibility": "off" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "water", | ||
"elementType": "geometry", | ||
"stylers": [ | ||
{ | ||
"color": "#0e1626" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "water", | ||
"elementType": "labels.text.fill", | ||
"stylers": [ | ||
{ | ||
"color": "#4e6d70" | ||
} | ||
] | ||
} | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,233 @@ | ||
[ | ||
{ | ||
"elementType": "geometry", | ||
"stylers": [ | ||
{ | ||
"color": "#1d2c4d" | ||
} | ||
] | ||
}, | ||
{ | ||
"elementType": "labels.text.fill", | ||
"stylers": [ | ||
{ | ||
"color": "#8ec3b9" | ||
} | ||
] | ||
}, | ||
{ | ||
"elementType": "labels.text.stroke", | ||
"stylers": [ | ||
{ | ||
"color": "#1a3646" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "administrative.country", | ||
"elementType": "geometry.stroke", | ||
"stylers": [ | ||
{ | ||
"color": "#4b6878" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "administrative.land_parcel", | ||
"elementType": "labels.text.fill", | ||
"stylers": [ | ||
{ | ||
"color": "#64779e" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "administrative.province", | ||
"elementType": "geometry.stroke", | ||
"stylers": [ | ||
{ | ||
"color": "#4b6878" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "landscape.man_made", | ||
"elementType": "geometry.stroke", | ||
"stylers": [ | ||
{ | ||
"color": "#334e87" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "landscape.natural", | ||
"elementType": "geometry", | ||
"stylers": [ | ||
{ | ||
"color": "#023e58" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "poi", | ||
"elementType": "geometry", | ||
"stylers": [ | ||
{ | ||
"color": "#283d6a" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "poi", | ||
"elementType": "labels.text.fill", | ||
"stylers": [ | ||
{ | ||
"color": "#6f9ba5" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "poi", | ||
"elementType": "labels.text.stroke", | ||
"stylers": [ | ||
{ | ||
"color": "#1d2c4d" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "poi.park", | ||
"elementType": "geometry.fill", | ||
"stylers": [ | ||
{ | ||
"color": "#023e58" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "poi.park", | ||
"elementType": "labels.text.fill", | ||
"stylers": [ | ||
{ | ||
"color": "#3C7680" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "road", | ||
"elementType": "geometry", | ||
"stylers": [ | ||
{ | ||
"color": "#304a7d" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "road", | ||
"elementType": "labels.text.fill", | ||
"stylers": [ | ||
{ | ||
"color": "#98a5be" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "road", | ||
"elementType": "labels.text.stroke", | ||
"stylers": [ | ||
{ | ||
"color": "#1d2c4d" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "road.highway", | ||
"elementType": "geometry", | ||
"stylers": [ | ||
{ | ||
"color": "#2c6675" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "road.highway", | ||
"elementType": "geometry.stroke", | ||
"stylers": [ | ||
{ | ||
"color": "#255763" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "road.highway", | ||
"elementType": "labels.text.fill", | ||
"stylers": [ | ||
{ | ||
"color": "#b0d5ce" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "road.highway", | ||
"elementType": "labels.text.stroke", | ||
"stylers": [ | ||
{ | ||
"color": "#023e58" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "transit", | ||
"elementType": "labels.text.fill", | ||
"stylers": [ | ||
{ | ||
"color": "#98a5be" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "transit", | ||
"elementType": "labels.text.stroke", | ||
"stylers": [ | ||
{ | ||
"color": "#1d2c4d" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "transit.line", | ||
"elementType": "geometry.fill", | ||
"stylers": [ | ||
{ | ||
"color": "#283d6a" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "transit.station", | ||
"elementType": "geometry", | ||
"stylers": [ | ||
{ | ||
"color": "#3a4762" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "water", | ||
"elementType": "geometry", | ||
"stylers": [ | ||
{ | ||
"color": "#0e1626" | ||
} | ||
] | ||
}, | ||
{ | ||
"featureType": "water", | ||
"elementType": "labels.text.fill", | ||
"stylers": [ | ||
{ | ||
"color": "#4e6d70" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import 'package:georeal/global_variables.dart'; | ||
import 'package:http/http.dart' as http; | ||
|
||
class AuthService { | ||
static Future<void> login(String email, String password) async { | ||
var uri = Uri.parse('${GlobalVariables.URI}/auth/login'); | ||
var response = await http.post( | ||
uri, | ||
body: { | ||
'email': email, | ||
'password': password, | ||
}, | ||
); | ||
|
||
if (response.statusCode == 200) { | ||
// TODO: Handle successful login | ||
} else { | ||
// TODO: Handle unsuccessful login | ||
} | ||
} | ||
|
||
static Future<void> register( | ||
String name, String email, String password) async { | ||
var uri = Uri.parse('${GlobalVariables.URI}/auth/register'); | ||
var response = await http.post( | ||
uri, | ||
body: { | ||
'name': name, | ||
'email': email, | ||
'password': password, | ||
}, | ||
); | ||
|
||
if (response.statusCode == 200) { | ||
// TODO: Handle successful registration | ||
} else { | ||
// TODO: Handle unsuccessful registration | ||
} | ||
} | ||
} |
Oops, something went wrong.