Skip to content

Commit f46cea2

Browse files
committed
settings page two and readme sections updates
1 parent 841a36d commit f46cea2

File tree

4 files changed

+114
-1
lines changed

4 files changed

+114
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ My effort on replicating various apps UI on flutter.
2020
- **[Animation Examples UI](#animations)**
2121
- **[Ecommerce UIs](#ecommerce)**
2222
- **[Login/signup UIs](#user-flow-screens)**
23+
- **[Settings UIs](#settings-uis)**
24+
- **[Dashboard UIs](#dashboard-uis)**
2325
- **[Motorbike App UIs](#motorbike-app-uis)**
2426
- **[Profile UIs](#profile-screens)**
2527
- **[Invitation App UIs](#inviation-app-ui)**
@@ -143,8 +145,10 @@ The code for Springy Widget is taken and refactored from (https://github.com/mat
143145
<img height="480px" src="screenshots/auth3-1.png"> <img height="480px" src="screenshots/auth3-2.png"> <img height="480px" src="screenshots/login7.png"> <img height="480px" src="screenshots/signup2.png"> <img height="480px" src="screenshots/login6.png"> <img height="480px" src="screenshots/auth2.png"> <img height="480px" src="screenshots/login5.png"> <img height="480px" src="screenshots/auth1.png"> <img height="480px" src="screenshots/login4.png"> <img height="480px" src="screenshots/login1.png"> <img height="480px" src="screenshots/login2.png"> <img height="480px" src="screenshots/login3.gif"> <img height="480px" src="screenshots/signup1.png">
144146

145147
## Settings UIs
148+
<img height="480px" src="screenshots/settings1.png"> <img height="480px" src="screenshots/settings2.png">
146149

147-
<img height="480px" src="screenshots/settings1.png">
150+
## Dashboard UIs
151+
<img height="480px" src="screenshots/dash1.png"> <img height="480px" src="screenshots/dash2.png"> <img height="480px" src="screenshots/dash3.png">
148152

149153
## Motorbike App UIs
150154
<img height="480px" src="screenshots/bike1.png"> <img height="480px" src="screenshots/bike2.png">

lib/core/presentation/routes.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import 'package:flutter_ui_challenges/src/pages/misc/image_popup.dart';
1616
import 'package:flutter_ui_challenges/src/pages/misc/musicplayer.dart';
1717
import 'package:flutter_ui_challenges/src/pages/onboarding/intro6.dart';
1818
import 'package:flutter_ui_challenges/src/pages/settings/settings1.dart';
19+
import 'package:flutter_ui_challenges/src/pages/settings/settings2.dart';
1920
import 'package:flutter_ui_challenges/src/pages/todo/todo_home3.dart';
2021
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
2122
import 'package:flutter_ui_challenges/src/pages/todo/todo2.dart';
@@ -138,6 +139,8 @@ final List<dynamic> pages = [
138139
MenuItem(title: "Settings",icon: Icons.dashboard,items: [
139140
SubMenuItem("Settings One", SettingsOnePage(),
140141
path: SettingsOnePage.path),
142+
SubMenuItem("Settings Two", SettingsTwoPage(),
143+
path: SettingsTwoPage.path),
141144
]),
142145
MenuItem(title: "Motorbike App", icon: Icons.list, items: [
143146
SubMenuItem("Home Page", BikeHomePage(), path: BikeHomePage.path),

lib/src/pages/settings/settings2.dart

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
/**
2+
* Author: Damodar Lohani
3+
* profile: https://github.com/lohanidamodar
4+
*/
5+
6+
import 'package:flutter/material.dart';
7+
import 'package:cached_network_image/cached_network_image.dart';
8+
import 'package:flutter_ui_challenges/core/presentation/res/assets.dart';
9+
import 'package:flutter_ui_challenges/src/pages/invitation/inlanding.dart';
10+
11+
class SettingsTwoPage extends StatelessWidget {
12+
static final String path = "lib/src/pages/settings/settings1.dart";
13+
final TextStyle whiteText = TextStyle(
14+
color: Colors.white,
15+
);
16+
final TextStyle greyTExt = TextStyle(
17+
color: Colors.grey.shade400,
18+
);
19+
@override
20+
Widget build(BuildContext context) {
21+
return Scaffold(
22+
backgroundColor: Colors.black,
23+
body: Theme(
24+
data: Theme.of(context).copyWith(
25+
brightness: Brightness.dark,
26+
primaryColor: Colors.purple,
27+
),
28+
child: DefaultTextStyle(
29+
style: TextStyle(
30+
color: Colors.white,
31+
),
32+
child: SingleChildScrollView(
33+
padding: const EdgeInsets.all(32.0),
34+
child: Column(
35+
children: <Widget>[
36+
const SizedBox(height: 30.0),
37+
Row(
38+
children: <Widget>[
39+
Container(
40+
width: 60,
41+
height: 60,
42+
decoration: BoxDecoration(
43+
color: Colors.white,
44+
shape: BoxShape.circle,
45+
image: DecorationImage(
46+
image: CachedNetworkImageProvider(avatars[1]),
47+
fit: BoxFit.cover,
48+
),
49+
border: Border.all(color: Colors.white,width: 2.0,),
50+
),
51+
),
52+
const SizedBox(width: 10.0),
53+
Expanded(
54+
child: Column(
55+
crossAxisAlignment: CrossAxisAlignment.start,
56+
children: <Widget>[
57+
Text("Jane Doe", style: TextStyle(
58+
fontWeight: FontWeight.bold,
59+
fontSize: 20.0,
60+
),),
61+
Text("Nepal",style: TextStyle(
62+
color: Colors.grey.shade400,
63+
),),
64+
],
65+
),
66+
),
67+
],
68+
),
69+
70+
const SizedBox(height: 20.0),
71+
ListTile(
72+
title: Text("Languages",style: whiteBoldText,),
73+
subtitle: Text("English US",style: greyTExt,),
74+
trailing: Icon(Icons.keyboard_arrow_right,color: Colors.grey.shade400,),
75+
onTap: (){},
76+
),
77+
ListTile(
78+
title: Text("Profile Settings",style: whiteBoldText,),
79+
subtitle: Text("Jane Doe",style: greyTExt,),
80+
trailing: Icon(Icons.keyboard_arrow_right,color: Colors.grey.shade400,),
81+
onTap: (){},
82+
),
83+
SwitchListTile(
84+
title: Text("Email Notifications",style: whiteBoldText,),
85+
subtitle: Text("On",style: greyTExt,),
86+
value: true,
87+
onChanged: (val){},
88+
),
89+
SwitchListTile(
90+
title: Text("Push Notifications",style: whiteBoldText,),
91+
subtitle: Text("Off",style: greyTExt,),
92+
value: false,
93+
onChanged: (val){},
94+
),
95+
ListTile(
96+
title: Text("Logout",style: whiteBoldText,),
97+
onTap: (){},
98+
),
99+
],
100+
),
101+
),
102+
),
103+
),
104+
);
105+
}
106+
}

screenshots/settings2.png

125 KB
Loading

0 commit comments

Comments
 (0)