This file contains hidden or 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
buildMenuItem(Icons.account_balance, "ACCOUNTS",opacity: 1.0, color: Color(0xFF015FFF)), | |
Divider(), | |
buildMenuItem(Icons.compare_arrows, "TRANSFER"), | |
Divider(), | |
buildMenuItem(Icons.receipt, "STATEMENTS"), | |
Divider(), | |
buildMenuItem(Icons.attach_money, "PAYMENTS"), | |
Divider(), | |
buildMenuItem(Icons.sentiment_satisfied, "INVESTMENTS"), | |
Divider(), |
This file contains hidden or 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
Opacity buildMenuItem(IconData icon, String title, | |
{double opacity = 0.3, Color color = Colors.black}) { | |
return Opacity( | |
opacity: opacity, | |
child: Center( | |
child: Column( | |
children: <Widget>[ | |
SizedBox( | |
height: 20.0, | |
), |
This file contains hidden or 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
Padding( | |
padding: EdgeInsets.only(top: 10.0), | |
child: FlatButton.icon( | |
icon: Icon( | |
Icons.arrow_back, | |
color: Color(0xFF015FFF), | |
), | |
onPressed: null, | |
label: Text("Back", | |
style: TextStyle( |
This file contains hidden or 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
import 'package:flutter/material.dart'; | |
class AppDrawer extends StatefulWidget { | |
@override | |
_AppDrawerState createState() => _AppDrawerState(); | |
} | |
class _AppDrawerState extends State<AppDrawer> { | |
@override | |
Widget build(BuildContext context) { |
This file contains hidden or 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
Container( | |
color: Colors.white, | |
child: Column( | |
children: <Widget>[ | |
topArea(), | |
], | |
), | |
), |
This file contains hidden or 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
Card topArea() => Card( | |
margin: EdgeInsets.all(10.0), | |
elevation: 1.0, | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.all(Radius.circular(50.0))), | |
child: Container( | |
decoration: BoxDecoration( | |
gradient: RadialGradient( | |
colors: [Color(0xFF015FFF), Color(0xFF015FFF)])), | |
padding: EdgeInsets.all(5.0), |
This file contains hidden or 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
import 'package:flutter/material.dart'; | |
class AppDrawer extends StatefulWidget { | |
@override | |
_AppDrawerState createState() => _AppDrawerState(); | |
} | |
class _AppDrawerState extends State<AppDrawer> { | |
@override | |
Widget build(BuildContext context) { |
This file contains hidden or 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
assets: | |
- drive-steering-wheel.jpg | |
fonts: | |
- family: Raleway | |
fonts: | |
- asset: fonts/Raleway-Regular.ttf | |
- asset: fonts/Raleway-Thin.ttf | |
style: normal |
This file contains hidden or 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
import 'package:beautiful_list/model/lesson.dart'; | |
import 'package:flutter/material.dart'; | |
class DetailPage extends StatelessWidget { | |
final Lesson lesson; | |
DetailPage({Key key, this.lesson}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
final levelIndicator = Container( | |
child: Container( |
This file contains hidden or 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
final bottomContentText = Text( | |
lesson.content, | |
style: TextStyle(fontSize: 18.0), | |
); | |
final readButton = Padding( | |
padding: EdgeInsets.symmetric(vertical: 16.0), | |
child: RaisedButton( | |
onPressed: () => {}, | |
color: Color.fromRGBO(58, 66, 86, 1.0), | |
child: |