forked from lohanidamodar/flutter_ui_challenges
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78000bf
commit 0aace1e
Showing
56 changed files
with
1,110 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Author: Mausam Rayamajhi | ||
* profile: https://github.com/mausamRayamajhi | ||
*/ | ||
|
||
|
||
import 'package:flutter/material.dart'; | ||
import 'pages/dashboard.dart'; | ||
import 'pages/login.dart'; | ||
import 'util/constant.dart'; | ||
|
||
class NicAsiaApp extends StatelessWidget { | ||
static final String path = "lib/src/nic_asia_clone/nic_asia_app.dart"; | ||
@override | ||
Widget build(BuildContext context) { | ||
return MaterialApp( | ||
debugShowCheckedModeBanner: false, | ||
title: 'NIC ASIA', | ||
theme: ThemeData( | ||
primaryColor: primaryColor, | ||
accentColor: primaryColorLight, | ||
), | ||
initialRoute: '/', | ||
routes: <String, WidgetBuilder>{ | ||
'/': (BuildContext context) => SafeArea( | ||
top: true, | ||
child: Login(), | ||
), | ||
'/dashboard': (context) => SafeArea( | ||
top: true, | ||
child: Dashboard(), | ||
), | ||
}, | ||
onUnknownRoute: (RouteSettings settings) { | ||
print('INSIDE Unknown routes'); | ||
return MaterialPageRoute( | ||
builder: (BuildContext context) => Login(), | ||
); | ||
}, | ||
); | ||
} | ||
} |
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,204 @@ | ||
/** | ||
* Author: Mausam Rayamajhi | ||
* profile: https://github.com/mausamRayamajhi | ||
*/ | ||
|
||
|
||
import 'package:flutter/cupertino.dart'; | ||
import 'package:flutter/material.dart'; | ||
import '../util/constant.dart'; | ||
import '../widget/dashboard/categories.dart'; | ||
import '../widget/dashboard/last_transactions.dart'; | ||
import '../widget/dashboard/top_account_info.dart'; | ||
import '../widget/profile_image.dart'; | ||
|
||
class Dashboard extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
Size deviceSize = MediaQuery.of(context).size; | ||
return Scaffold( | ||
drawer: Drawer( | ||
child: Column( | ||
children: <Widget>[ | ||
buildUserInfo(context), | ||
buildDrawerItem, | ||
], | ||
), | ||
), | ||
appBar: buildAppBar(), | ||
body: Stack( | ||
children: <Widget>[ | ||
Container( | ||
color: primaryColor, | ||
height: deviceSize.height * 0.1, | ||
), | ||
Container( | ||
margin: EdgeInsets.symmetric( | ||
horizontal: deviceSize.width * 0.03, | ||
), | ||
child: Column( | ||
children: <Widget>[ | ||
TopAccountInfo(), | ||
Flexible( | ||
fit: FlexFit.tight, | ||
child: ListView( | ||
physics: BouncingScrollPhysics(), | ||
shrinkWrap: true, | ||
children: <Widget>[ | ||
Categories(), | ||
LastTransactions(), | ||
], | ||
), | ||
) | ||
], | ||
), | ||
) | ||
], | ||
), | ||
); | ||
} | ||
|
||
final buildDrawerItem = Flexible( | ||
child: Container( | ||
color: drawerColoSecondary, | ||
padding: EdgeInsets.symmetric(vertical: 10.0, horizontal: 10.0), | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
children: <Widget>[ | ||
Column( | ||
mainAxisSize: MainAxisSize.min, | ||
children: <Widget>[ | ||
for (Draw item in drawerItems) | ||
ListTile( | ||
leading: Icon( | ||
item.icon, | ||
color: Colors.white70, | ||
), | ||
title: Text( | ||
item.title, | ||
style: TextStyle( | ||
color: Colors.white70, | ||
), | ||
), | ||
), | ||
], | ||
), | ||
ListTile( | ||
leading: Icon( | ||
Icons.lock, | ||
color: Colors.white, | ||
), | ||
title: Text( | ||
'Logout', | ||
style: TextStyle( | ||
color: Colors.white, | ||
), | ||
), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
|
||
buildUserInfo(context) => Container( | ||
color: drawerColoPrimary, | ||
//height: deviceSize.height * 0.3, | ||
padding: EdgeInsets.only(bottom: 25.0), | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
mainAxisSize: MainAxisSize.min, | ||
children: <Widget>[ | ||
ListTile( | ||
onTap: () { | ||
Navigator.of(context).pop(); | ||
}, | ||
leading: Icon( | ||
Icons.arrow_back, | ||
color: Colors.white, | ||
), | ||
), | ||
Row( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: <Widget>[ | ||
Text( | ||
'Good Afternoon!', | ||
style: TextStyle( | ||
fontSize: 14.0, | ||
fontWeight: FontWeight.w300, | ||
color: Colors.white, | ||
), | ||
), | ||
SizedBox( | ||
width: 5, | ||
), | ||
Text( | ||
'MAUSAM'.toUpperCase(), | ||
style: TextStyle( | ||
fontSize: 17.0, | ||
fontWeight: FontWeight.w300, | ||
color: Colors.white, | ||
), | ||
), | ||
], | ||
), | ||
SizedBox( | ||
height: 15.0, | ||
), | ||
ProfileImage( | ||
color: Colors.white, | ||
height: 70.0, | ||
width: 70.0, | ||
), | ||
SizedBox( | ||
height: 15.0, | ||
), | ||
Text( | ||
'MAUSAM rayamajhi'.toUpperCase(), | ||
style: TextStyle( | ||
fontSize: 15.0, | ||
fontWeight: FontWeight.w300, | ||
color: Colors.white, | ||
), | ||
) | ||
], | ||
), | ||
); | ||
|
||
AppBar buildAppBar() { | ||
return AppBar( | ||
elevation: 0.0, | ||
// centerTitle: true, | ||
title: Row( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: <Widget>[ | ||
Text( | ||
'Welcome!', | ||
style: TextStyle( | ||
fontSize: 17.0, | ||
fontWeight: FontWeight.w300, | ||
color: Colors.white, | ||
), | ||
), | ||
SizedBox( | ||
width: 5, | ||
), | ||
Text( | ||
'MAUSAM'.toUpperCase(), | ||
style: TextStyle( | ||
fontSize: 20.0, | ||
fontWeight: FontWeight.w300, | ||
color: Colors.white, | ||
), | ||
) | ||
], | ||
), | ||
actions: <Widget>[ | ||
IconButton( | ||
icon: Image.asset('assets/nicasiaassets/ic_scan2pay_64_4.png'), | ||
tooltip: 'QR Scan', | ||
onPressed: () {}, | ||
), | ||
], | ||
); | ||
} | ||
} |
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,26 @@ | ||
/** | ||
* Author: Mausam Rayamajhi | ||
* profile: https://github.com/mausamRayamajhi | ||
*/ | ||
|
||
import 'package:flutter/material.dart'; | ||
import '../util/constant.dart'; | ||
import '../widget/login/login_container.dart'; | ||
|
||
class Login extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
body: LoginContainer(), | ||
backgroundColor: Colors.white, | ||
floatingActionButton: FloatingActionButton( | ||
child: Image.asset( | ||
'assets/nicasiaassets/nicLogo.png', | ||
color: Colors.white, | ||
), | ||
backgroundColor: primaryColor, | ||
onPressed: () {}, | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.