Skip to content

Commit b86dc35

Browse files
committed
Add edit personal account screen
1 parent e57ce3f commit b86dc35

File tree

4 files changed

+419
-5
lines changed

4 files changed

+419
-5
lines changed

lib/basic.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import 'package:basic/screens/edit/edit_customer_screen.dart';
55
import 'package:basic/screens/edit/edit_expense_screen.dart';
66
import 'package:basic/screens/edit/edit_item1_screen.dart';
77
import 'package:basic/screens/edit/edit_item_screen.dart';
8+
import 'package:basic/screens/edit/edit_personal_account_screen.dart';
89
import 'package:basic/screens/edit/edit_product_screen.dart';
910
import 'package:basic/screens/edit/edit_service1_screen.dart';
1011
import 'package:basic/screens/edit/edit_service_screen.dart';
@@ -15,6 +16,7 @@ import 'package:basic/screens/auth/setup_account_screen.dart';
1516
import 'package:basic/screens/auth/verify_number_screen.dart';
1617
import 'package:basic/screens/dashboard/dashboard_screen.dart';
1718
import 'package:basic/screens/main/main_screen.dart';
19+
import 'package:basic/screens/more/more_screen.dart';
1820
import 'package:basic/screens/new/new_customer_screen.dart';
1921
import 'package:basic/screens/new/new_item_screen.dart';
2022
import 'package:basic/screens/new/new_product_screen.dart';
@@ -67,7 +69,7 @@ class Basic extends StatelessWidget {
6769
primaryColor: primaryColor,
6870
scaffoldBackgroundColor: desaturatedGreyColor,
6971
),
70-
home: EditItem1Screen(),
72+
home: EditPersonalAccountScreen(),
7173
debugShowCheckedModeBanner: false,
7274
);
7375
}
Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
import 'package:basic/Enums/button_size_enums.dart';
2+
import 'package:basic/constants/color_constants.dart';
3+
import 'package:basic/constants/textstyle_constants.dart';
4+
import 'package:basic/screens/edit/edit_service_screen.dart';
5+
import 'package:basic/screens/new/new_service_screen.dart';
6+
import 'package:basic/screens/upload/upload_product_screen.dart';
7+
import 'package:basic/widgets/appbar_button_widget.dart';
8+
import 'package:basic/widgets/button_widget.dart';
9+
import 'package:basic/widgets/row_price_details_widget.dart';
10+
import 'package:flutter/material.dart';
11+
import 'package:flutter/services.dart';
12+
13+
class EditBusinessAccountScreen extends StatelessWidget {
14+
const EditBusinessAccountScreen({Key? key}) : super(key: key);
15+
16+
@override
17+
Widget build(BuildContext context) {
18+
SystemChrome.setEnabledSystemUIOverlays([
19+
SystemUiOverlay.top,
20+
SystemUiOverlay.bottom,
21+
]);
22+
23+
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
24+
statusBarColor: primaryColor,
25+
statusBarBrightness: Brightness.dark,
26+
systemNavigationBarIconBrightness: Brightness.dark,
27+
statusBarIconBrightness: Brightness.light,
28+
systemNavigationBarColor: desaturatedGreyColor,
29+
));
30+
31+
return Scaffold(
32+
appBar: AppBar(
33+
brightness: Brightness.dark,
34+
backgroundColor: primaryColor,
35+
title: Row(
36+
mainAxisAlignment: MainAxisAlignment.spaceBetween,
37+
children: [
38+
AppBarButtonWidget(
39+
icon: Icon(
40+
Icons.arrow_back_ios,
41+
size: 17,
42+
),
43+
isIconSameSize: false,
44+
onTap: () {},
45+
size: ButtonSize.big,
46+
text: 'Return',
47+
),
48+
],
49+
),
50+
automaticallyImplyLeading: false,
51+
bottom: PreferredSize(
52+
child: Container(
53+
margin: EdgeInsets.only(
54+
left: 20,
55+
bottom: 20,
56+
),
57+
child: Align(
58+
alignment: Alignment.topLeft,
59+
child: Text(
60+
'Edit business account',
61+
style: h6TextStyle.merge(TextStyle(color: whiteColor)),
62+
),
63+
),
64+
),
65+
preferredSize: Size.fromHeight(60),
66+
),
67+
),
68+
body: SingleChildScrollView(
69+
child: Container(
70+
padding: EdgeInsets.all(20),
71+
child: Column(
72+
children: [
73+
Container(
74+
padding: EdgeInsets.symmetric(
75+
vertical: 20,
76+
horizontal: 20,
77+
),
78+
height: 60,
79+
decoration: BoxDecoration(
80+
color: whiteColor,
81+
borderRadius: BorderRadius.all(
82+
Radius.circular(20),
83+
),
84+
),
85+
child: TextField(
86+
keyboardType: TextInputType.name,
87+
decoration: InputDecoration(
88+
hintText: 'Business name',
89+
hintStyle:
90+
bodyTextStyle.merge(TextStyle(color: lightGreyColor)),
91+
contentPadding: EdgeInsets.symmetric(vertical: 8),
92+
enabledBorder: InputBorder.none,
93+
),
94+
),
95+
),
96+
SizedBox(height: 10),
97+
Container(
98+
padding: EdgeInsets.symmetric(vertical: 20, horizontal: 20),
99+
height: 60,
100+
decoration: BoxDecoration(
101+
color: whiteColor,
102+
borderRadius: BorderRadius.all(
103+
Radius.circular(20),
104+
),
105+
),
106+
child: SizedBox(
107+
width: double.infinity,
108+
child: DropdownButtonHideUnderline(
109+
child: DropdownButton(
110+
style:
111+
bodyTextStyle.merge(TextStyle(color: primaryColor)),
112+
hint: Text(
113+
'Activity',
114+
style:
115+
bodyTextStyle.merge(TextStyle(color: primaryColor)),
116+
),
117+
onChanged: (String? t) {},
118+
icon: Padding(
119+
padding: const EdgeInsets.only(
120+
left: 10,
121+
bottom: 5,
122+
),
123+
child: RotatedBox(
124+
quarterTurns: 3,
125+
child: Icon(
126+
Icons.arrow_back_ios,
127+
size: 16,
128+
color: primaryColor,
129+
),
130+
),
131+
),
132+
items: [
133+
DropdownMenuItem(
134+
value: 'Cooking',
135+
child: Text('Cooking'),
136+
),
137+
],
138+
),
139+
),
140+
),
141+
),
142+
SizedBox(height: 10),
143+
Container(
144+
padding: EdgeInsets.symmetric(
145+
vertical: 20,
146+
horizontal: 20,
147+
),
148+
height: 60,
149+
decoration: BoxDecoration(
150+
color: whiteColor,
151+
borderRadius: BorderRadius.all(
152+
Radius.circular(20),
153+
),
154+
),
155+
child: TextField(
156+
keyboardType: TextInputType.text,
157+
maxLines: 7,
158+
minLines: 5,
159+
decoration: InputDecoration(
160+
hintText: 'About',
161+
hintStyle:
162+
bodyTextStyle.merge(TextStyle(color: lightGreyColor)),
163+
contentPadding: EdgeInsets.symmetric(vertical: 8),
164+
enabledBorder: InputBorder.none,
165+
),
166+
),
167+
),
168+
SizedBox(height: 20),
169+
ButtonWidget(
170+
backgroundColor: accentColor!,
171+
loading: false,
172+
onTap: () {},
173+
size: ButtonSize.big,
174+
text: "Save",
175+
textColor: whiteColor!,
176+
),
177+
],
178+
),
179+
),
180+
),
181+
);
182+
}
183+
}

0 commit comments

Comments
 (0)