about page

This commit is contained in:
Felix 2019-09-02 17:12:19 +01:00
parent a512549778
commit 2d741e61c7
4 changed files with 36 additions and 53 deletions

View file

@ -14,7 +14,7 @@ PODS:
- Flutter - Flutter
DEPENDENCIES: DEPENDENCIES:
- Flutter (from `.symlinks/flutter/ios`) - Flutter (from `.symlinks/flutter/ios-profile`)
- google_maps_flutter (from `.symlinks/plugins/google_maps_flutter/ios`) - google_maps_flutter (from `.symlinks/plugins/google_maps_flutter/ios`)
- shared_preferences (from `.symlinks/plugins/shared_preferences/ios`) - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
- url_launcher (from `.symlinks/plugins/url_launcher/ios`) - url_launcher (from `.symlinks/plugins/url_launcher/ios`)
@ -25,7 +25,7 @@ SPEC REPOS:
EXTERNAL SOURCES: EXTERNAL SOURCES:
Flutter: Flutter:
:path: ".symlinks/flutter/ios" :path: ".symlinks/flutter/ios-profile"
google_maps_flutter: google_maps_flutter:
:path: ".symlinks/plugins/google_maps_flutter/ios" :path: ".symlinks/plugins/google_maps_flutter/ios"
shared_preferences: shared_preferences:

View file

@ -282,7 +282,7 @@
); );
inputPaths = ( inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework", "${PODS_ROOT}/../.symlinks/flutter/ios-profile/Flutter.framework",
); );
name = "[CP] Embed Pods Frameworks"; name = "[CP] Embed Pods Frameworks";
outputPaths = ( outputPaths = (

View file

@ -59,13 +59,8 @@ Future<Locations> getLocations(gmaps.LatLng ne, gmaps.LatLng sw) async {
const pearLocationsURL = 'https://dev.localspend.co.uk/api/v1/supplier/location'; const pearLocationsURL = 'https://dev.localspend.co.uk/api/v1/supplier/location';
SharedPreferences preferences = await SharedPreferences.getInstance(); SharedPreferences preferences = await SharedPreferences.getInstance();
Map<String, String> body;
body = {
'session_key': preferences.get('LastToken'),
};
Map<String, Map<String, double>> mapData = { Map<String, Map<String, double>> mapData = {
'session_key': preferences.get('LastToken'),
'north_east': { 'north_east': {
'latitude': ne.latitude, 'latitude': ne.latitude,
'longitude': ne.longitude 'longitude': ne.longitude
@ -78,7 +73,7 @@ Future<Locations> getLocations(gmaps.LatLng ne, gmaps.LatLng sw) async {
final response = await http.post( final response = await http.post(
pearLocationsURL, pearLocationsURL,
body: json.encode(body), body: json.encode(mapData),
); );
if (response.statusCode == 200) { if (response.statusCode == 200) {

View file

@ -94,33 +94,48 @@ class MorePageState extends State<MorePage> {
applicationIcon: new Icon(Icons.receipt), applicationIcon: new Icon(Icons.receipt),
applicationName: "Local Spend Tracker", applicationName: "Local Spend Tracker",
children: <Widget>[ children: <Widget>[
Text( Text("Pear Trading is a commerce company designed to register and monitor money circulating in the local economy.\n"),
"Pear Trading is a commerce company designed to register and monitor money circulating in the local economy.\n"),
Container( Container(
padding: EdgeInsets.symmetric(horizontal: 10), margin: EdgeInsets.symmetric(horizontal: 10),
height: 35, height: 35,
child: RaisedButton( child: RaisedButton(
onPressed: () => {}, onPressed: () => launch('http://www.peartrade.org'),
// launch(- something -), child: Text("Pear Trading",
child: Text("Contact us",
style: TextStyle( style: TextStyle(
color: Colors.white, fontSize: 18.0)), color: Colors.white, fontSize: 18.0)),
color: Colors.green, color: Colors.green,
), ),
), ),
Container( Container(
height: 35, margin: EdgeInsets.fromLTRB(10.0, 10.0, 10.0, 0.0),
margin: EdgeInsets.fromLTRB(10, 20, 10, 0), height: 40.0,
child: RaisedButton( child: Material(
child: Text( color: Colors.transparent,
'Pear Trading', child: InkWell(
borderRadius: BorderRadius.circular(3),
onTap: () => launch('https://shadow.cat'),
child: Column(
children: [
Align(
child: Text("Developed by"),
alignment: Alignment.centerLeft),
Container(
margin: EdgeInsets.all(0),
child : Text(
"Shadowcat Systems",
style: TextStyle( style: TextStyle(
color: Colors.white, fontSize: 18.0), fontSize: 18,
fontWeight: FontWeight.bold
), ),
color: Colors.lightGreen,
onPressed: () =>
launch('http://www.peartrade.org')),
), ),
),
],
),
),
),
),
], ],
); );
}, },
@ -152,33 +167,6 @@ class MorePageState extends State<MorePage> {
), ),
), ),
Padding(
padding: EdgeInsets.fromLTRB(30.0, 20.0, 30.0, 0.0),
child: Container(
height: 75.0,
child: Material(
color: Colors.transparent,
child: InkWell(
borderRadius: BorderRadius.circular(3),
onTap: () => launch('https://shadow.cat'),
child: Column(
children: [
Align(
child: Text("Developed by"),
alignment: Alignment.centerLeft),
FittedBox(
fit: BoxFit.fitHeight,
child: Image(
image: ExactAssetImage('assets/images/text.png'),
),
),
],
),
),
),
),
),
// Padding( // Padding(
// padding: EdgeInsets.fromLTRB(30.0, 20.0, 30.0, 0.0), // padding: EdgeInsets.fromLTRB(30.0, 20.0, 30.0, 0.0),
// child: Container( // child: Container(