Skip to content

Commit

Permalink
Added Filters
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrelJerome committed Jun 19, 2019
1 parent 4befaf4 commit 8b5aebe
Showing 1 changed file with 194 additions and 88 deletions.
282 changes: 194 additions & 88 deletions lib/CreditsRoute.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,109 +14,215 @@ class CreditsRoute extends StatelessWidget {

@override
Widget build(BuildContext context) {
if (MediaQuery.of(context).orientation == Orientation.landscape) {
return Scaffold(
body: Container(
color: Colors.indigo,
padding: EdgeInsets.only(
bottom: 8,
top: 32,
left: 8,
right: 8,
),
height: double.infinity,
width: double.infinity,
child: InkWell(
child: Center(
child: Column(
children: <Widget>[
Expanded(
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Icon(
TFoods.tfoodstologotest,
size: 100.0,
color: Colors.indigo[100],
),
Spacer(),
Text(
"Powered by ",
style: TextStyle(
fontSize: 18,
color: Colors.white,
fontWeight: FontWeight.w600,
),
),
Container(
margin: EdgeInsets.all(4),
child: FlutterLogo(
size: 60,
),
),
],
),
Expanded(
child: Container(
margin: EdgeInsets.symmetric(horizontal: 32),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
mainAxisSize: MainAxisSize.max,
children: <Widget>[
Center(
child: Text(
"Disclaimer",
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w600,
color: Colors.indigo[100],
),
textAlign: TextAlign.center,
),
),
Container(
margin: EdgeInsets.all(8),
child: Text(
" We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with The University of Toronto, or any of its subsidiaries or its affiliates. The official The University of Toronto website can be found at https://www.utoronto.ca/ . The name “The University of Toronto” as well as related names, marks, emblems and images are registered trademarks of The University of Toronto. ",
softWrap: true,
overflow: TextOverflow.visible,
maxLines: 8,
style: TextStyle(
fontSize: 15,
color: Colors.indigo[100],
fontWeight: FontWeight.w600,
),
),
),
Container(
//margin: EdgeInsets.all(16),
child: Text(
"All data presented is updated periodically from the Cobalt API, we are not liable for innaccuracies, but try to keep data accurate.",
style: TextStyle(
fontSize: 15,
color: Colors.indigo[100],
fontWeight: FontWeight.w600,
),
textAlign: TextAlign.center,
),
),
],
),
),
),
],
),
),
RaisedButton(
child: Text("Got a Suggestion? Leave a Review!"),
onPressed: () {
LaunchReview.launch();
},
)
],
),
),
),
),
);
}
return Scaffold(
body: Container(
color: Colors.indigo,
padding: EdgeInsets.only(
bottom: 8,
top: 32,
left: 8,
right: 8,
),
padding: EdgeInsets.all(16),
height: double.infinity,
width: double.infinity,
child: InkWell(
child: Center(
child: Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Expanded(
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Icon(
TFoods.tfoodstologotest,
size: 100.0,
color: Colors.indigo[100],
),
Spacer(),
Text(
"Powered by ",
style: TextStyle(
fontSize: 18,
color: Colors.white,
fontWeight: FontWeight.w600,
),
),
Container(
margin: EdgeInsets.all(4),
child: FlutterLogo(
size: 60,
),
),
],
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Icon(
TFoods.tfoodstologotest,
size: 80.0,
color: Colors.indigo[100],
),
],
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
"Powered by ",
style: TextStyle(
fontSize: 18,
color: Colors.white,
fontWeight: FontWeight.w600,
),
Expanded(
child: Container(
margin: EdgeInsets.symmetric(horizontal:32),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
mainAxisSize: MainAxisSize.max,
children: <Widget>[
Center(
child: Text(
"Disclaimer",
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w600,
color: Colors.indigo[100],
),
textAlign: TextAlign.center,
),
),
Container(
margin: EdgeInsets.all(8),
child: Text(
" We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with The University of Toronto, or any of its subsidiaries or its affiliates. The official The University of Toronto website can be found at https://www.utoronto.ca/ . The name “The University of Toronto” as well as related names, marks, emblems and images are registered trademarks of The University of Toronto. ",
softWrap: true,
overflow: TextOverflow.visible,
maxLines: 8,
style: TextStyle(
fontSize: 15,
color: Colors.indigo[100],
fontWeight: FontWeight.w600,
),
),
),
Container(
//margin: EdgeInsets.all(16),
child: Text(
"All data presented is updated periodically from the Cobalt API, we are not liable for innaccuracies, but try to keep data accurate.",
style: TextStyle(
fontSize: 15,
color: Colors.indigo[100],
fontWeight: FontWeight.w600,
),
textAlign: TextAlign.center,
),
),
],
),
),
Container(
margin: EdgeInsets.all(8),
child: FlutterLogo(
size: 80,
),
),
],
),
Column(
mainAxisSize: MainAxisSize.max,
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
Center(
child: Text(
"Disclaimer",
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w600,
color: Colors.indigo[100],
),
textAlign: TextAlign.center,
),
),
Container(
margin: EdgeInsets.all(8),
child: Text(
" We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with The University of Toronto, or any of its subsidiaries or its affiliates. The official The University of Toronto website can be found at https://www.utoronto.ca/ . The name “The University of Toronto” as well as related names, marks, emblems and images are registered trademarks of The University of Toronto. ",
style: TextStyle(
fontSize: 15,
color: Colors.indigo[100],
fontWeight: FontWeight.w600,
),
textAlign: TextAlign.center,
),
),
Container(
//margin: EdgeInsets.all(16),
child: Text(
"All data presented is updated periodically from the Cobalt API, we are not liable for innaccuracies, but try to keep data accurate.",
style: TextStyle(
fontSize: 15,
color: Colors.indigo[100],
fontWeight: FontWeight.w600,
),
textAlign: TextAlign.center,
),
),
],
),
Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
// Text("Suggestion?"),
RaisedButton(
child: Text("Got a Suggestion? Leave a Review!"),
onPressed: () {
LaunchReview.launch();
},
)
],
),
),
RaisedButton(
child: Text("Got a Suggestion? Leave a Review!"),
onPressed: () {
LaunchReview.launch();
},
)
],
),
),
Expand Down

0 comments on commit 8b5aebe

Please sign in to comment.