Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit 066a6d7

Browse files
AmbikadulalAparna16
andauthored
Walletapp (#79)
* changes upto * DiscoveryPage * wallet app Co-authored-by: Aparna16 <aparna@kumarijob.com>
1 parent f7014fb commit 066a6d7

File tree

7 files changed

+977
-1
lines changed

7 files changed

+977
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,8 @@ Bank app clone by [Mausam Rayamajhi](https://github.com/mausamRayamajhi)
149149

150150
## Furniture App UI
151151
Furniture App by [Mausam Rayamajhi](https://github.com/mausamRayamajhi)
152-
<img height="480px" src="screenshots/f1.png"> <img height="480px" src="screenshots/f2.gif">
152+
<img height="480px" src="screenshots/f1.png"> <img height="480px" src="screenshots/f2.gif">
153+
154+
## Wallet App Clone
155+
Furniture App by [Ambika Dulal](https://github.com/Ambikadulal)
156+
<img height="480px" src="screenshots/wallet-1.jpg"> <img height="480px" src="screenshots/wallet-2.jpg">

lib/core/presentation/routes.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ import 'package:flutter_ui_challenges/src/pages/settings/settings2.dart';
5454
import 'package:flutter_ui_challenges/src/pages/settings/settings3.dart';
5555
import 'package:flutter_ui_challenges/src/pages/settings/settings4.dart';
5656
import 'package:flutter_ui_challenges/src/pages/todo/todo_home3.dart';
57+
import 'package:flutter_ui_challenges/src/walletapp_ui/main.dart';
5758
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
5859
import 'package:flutter_ui_challenges/src/pages/todo/todo2.dart';
5960
import 'package:flutter_ui_challenges/src/pages/dashboard/dash3.dart';
@@ -349,6 +350,8 @@ final List<dynamic> pages = [
349350
path: GroceryHomePage.path),
350351
SubMenuItem("Bank App Clone", NicAsiaApp(), path: NicAsiaApp.path),
351352
SubMenuItem("Furniture App", FurnitureApp(), path: FurnitureApp.path),
353+
SubMenuItem("Wallet App Clone", WalletAppClone(), path: WalletAppClone.path),
354+
352355
],
353356
icon: Icons.account_balance_wallet),
354357
MenuItem(title: "Miscellaneous", items: [

lib/src/walletapp_ui/main.dart

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/**
2+
* Author: Ambika Dulal
3+
* profile: https://github.com/Ambikadulal
4+
* design:dribble.com
5+
*/
6+
import 'package:flutter/material.dart';
7+
import 'screens/cards_page.dart';
8+
import 'screens/homapage.dart';
9+
10+
class WalletAppClone extends StatelessWidget {
11+
static const String path = 'lib/src/walletapp_ui/main.dart';
12+
// This widget is the root of your application.
13+
@override
14+
Widget build(BuildContext context) {
15+
return MaterialApp(
16+
theme: ThemeData(
17+
primarySwatch: Colors.blue,
18+
),
19+
home: WalletApp(),
20+
debugShowCheckedModeBanner: false,
21+
);
22+
}
23+
}
24+
25+
class WalletApp extends StatefulWidget {
26+
@override
27+
_WalletAppState createState() => _WalletAppState();
28+
}
29+
30+
class _WalletAppState extends State<WalletApp> {
31+
var screens = [
32+
HomePage(),
33+
CardPage(),
34+
];
35+
36+
int selectedTab = 0;
37+
38+
@override
39+
Widget build(BuildContext context) {
40+
return Scaffold(
41+
backgroundColor: Color.fromRGBO(38, 81, 158, 1),
42+
bottomNavigationBar: BottomNavigationBar(
43+
items: [
44+
BottomNavigationBarItem(icon: Icon(Icons.home), title: Text("Home")),
45+
BottomNavigationBarItem(
46+
icon: Icon(Icons.credit_card), title: Text("Card")),
47+
],
48+
onTap: (index) {
49+
setState(() {
50+
selectedTab = index;
51+
});
52+
},
53+
showUnselectedLabels: true,
54+
iconSize: 30,
55+
),
56+
floatingActionButton: FloatingActionButton(
57+
onPressed: () {},
58+
elevation: 0,
59+
child: Icon(Icons.add),
60+
),
61+
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
62+
body: screens[selectedTab],
63+
);
64+
}
65+
}

0 commit comments

Comments
 (0)