-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into refactor/lazy-prov…
…ider
- Loading branch information
Showing
10 changed files
with
148 additions
and
119 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 |
---|---|---|
@@ -1 +1 @@ | ||
1.5.30+148 | ||
1.5.31+149 |
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 @@ | ||
// TODO Implement this library. |
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,35 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:latlong2/latlong.dart'; | ||
import 'package:uni/model/entities/location_group.dart'; | ||
import 'package:uni/view/locations/widgets/map.dart'; | ||
|
||
|
||
class FacultyMap extends StatelessWidget { | ||
final String faculty; | ||
final List<LocationGroup> locations; | ||
|
||
const FacultyMap({Key? key, required this.faculty, required this.locations}) | ||
: super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
switch (faculty) { | ||
case 'FEUP': | ||
return LocationsMap( | ||
northEastBoundary: LatLng(41.17986, -8.59298), | ||
southWestBoundary: LatLng(41.17670, -8.59991), | ||
center: LatLng(41.17731, -8.59522), | ||
locations: locations, | ||
); | ||
default: | ||
return Container(); // Should not happen | ||
} | ||
} | ||
|
||
static Color getFontColor(BuildContext context) { | ||
return Theme.of(context).brightness == Brightness.light | ||
? Theme.of(context).colorScheme.primary | ||
: Theme.of(context).colorScheme.tertiary; | ||
} | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.