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
| 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
| 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
| 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
| displayAccoutList() { | |
| return Container( | |
| margin: EdgeInsets.all(15.0), | |
| child: Column( | |
| children: <Widget>[ | |
| accountItems("Trevello App", r"+ $ 4,946.00", "28-04-16", "credit", | |
| oddColour: const Color(0xFFF7F7F9)), | |
| accountItems( | |
| "Creative Studios", r"+ $ 5,428.00", "26-04-16", "credit"), | |
| accountItems("Amazon EU", r"+ $ 746.00", "25-04-216", "Payment", |
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
| SizedBox( | |
| height: 40.0, | |
| child: Icon( | |
| Icons.refresh, | |
| size: 35.0, | |
| color: Color(0xFF015FFF), | |
| ), | |
| ) |
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
| SizedBox( | |
| height: 40.0, | |
| child: Icon( | |
| Icons.refresh, | |
| size: 35.0, | |
| color: Color(0xFF015FFF), | |
| ), | |
| ) |
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 accountItems( | |
| String item, String charge, String dateString, String type, | |
| {Color oddColour = Colors.white}) => | |
| Container( | |
| decoration: BoxDecoration(color: oddColour), | |
| padding: | |
| EdgeInsets.only(top: 20.0, bottom: 20.0, left: 5.0, right: 5.0), | |
| child: Column( | |
| children: <Widget>[ | |
| Row( |
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
| bottomNavigationBar: BottomAppBar( | |
| elevation: 0.0, | |
| child: Container( | |
| margin: EdgeInsets.symmetric(vertical: 20.0), | |
| child: Row( | |
| mainAxisSize: MainAxisSize.max, | |
| mainAxisAlignment: MainAxisAlignment.spaceAround, | |
| children: <Widget>[ | |
| FlatButton( | |
| padding: |
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'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( | |
| title: 'Crypto Wallet', | |
| home: CryptoWallet(), |