business profile form started

This commit is contained in:
vignesh 2022-05-27 12:27:43 +05:30
parent 61f0432fbb
commit d2ea8222a7
3 changed files with 324 additions and 25 deletions

View File

@ -298,8 +298,9 @@ class _businesshomeState extends State<businesshome> {
),
),
),
Spacer(),
Padding(
padding: const EdgeInsets.only(right: 15, top: 10, bottom: 15),
padding: const EdgeInsets.only(right: 5, top: 10, bottom: 15),
child: TextButton.icon(
icon: Icon(
Icons.add,
@ -324,7 +325,7 @@ class _businesshomeState extends State<businesshome> {
],
),
Container(
height: 350,
height: 380,
child: ListView(
scrollDirection: Axis.vertical,
children: [
@ -336,8 +337,6 @@ class _businesshomeState extends State<businesshome> {
MaterialPageRoute(builder: (_) => businessdetail()));
},
child: Container(
height: 160,
width: double.infinity,
margin: EdgeInsets.only(right: 15),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(5)),
@ -351,7 +350,6 @@ class _businesshomeState extends State<businesshome> {
children: [
Image.asset(
'assets/images/bg.png',
height: 250,
),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
@ -470,8 +468,7 @@ class _businesshomeState extends State<businesshome> {
MaterialPageRoute(builder: (_) => businessdetail()));
},
child: Container(
height: 160,
margin: EdgeInsets.only(right: 15, top: 10),
margin: EdgeInsets.only(right: 15),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(5)),
),
@ -603,8 +600,7 @@ class _businesshomeState extends State<businesshome> {
MaterialPageRoute(builder: (_) => businessdetail()));
},
child: Container(
height: 160,
margin: EdgeInsets.only(right: 15, top: 10),
margin: EdgeInsets.only(right: 15),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(5)),
),

View File

@ -1,6 +1,7 @@
import 'package:dotted_border/dotted_border.dart';
import 'package:flutter/material.dart';
import 'package:flutter_switch/flutter_switch.dart';
import 'package:openclosenew/15_addbusinessdetails.dart';
class businessdetailsempty extends StatefulWidget {
const businessdetailsempty({Key? key}) : super(key: key);
@ -47,7 +48,7 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
),
),
Padding(
padding: EdgeInsets.only(bottom: 300),
padding: EdgeInsets.only(left: 10, right: 10, bottom: 300),
child: Row(
children: [
FloatingActionButton(
@ -276,15 +277,23 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
),
),
),
DottedBorder(
color: Color(0xff09CD99),
padding: EdgeInsets.all(5),
radius: Radius.circular(20),
child: Container(
height: 50,
SizedBox(
height: 25,
),
InkWell(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => addbusinessdetails(),
),
);
},
child: DottedBorder(
dashPattern: [5, 5, 5, 5],
padding: EdgeInsets.all(15),
color: Color(0xff09CD99),
child: Row(
mainAxisAlignment:
MainAxisAlignment.center,
children: [
Text(
'This Business Profile looks incomplete',
@ -292,16 +301,15 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 12,
fontSize: 13,
color: Color(0xff09CD99),
),
),
IconButton(
icon: Icon(Icons
.arrow_forward_ios_rounded),
onPressed: () {
Navigator.pop(context);
},
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
),
],
),
@ -318,6 +326,203 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
],
),
),
SizedBox(
height: 35,
),
Padding(
padding: const EdgeInsets.only(left: 20, right: 15),
child: Column(
children: [
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your food items',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your shop photos',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your business services',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your business offers',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your business coupons',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
],
),
),
],
),
),

View File

@ -0,0 +1,98 @@
import 'package:flutter/material.dart';
class addbusinessdetails extends StatefulWidget {
const addbusinessdetails({Key? key}) : super(key: key);
@override
State<addbusinessdetails> createState() => _addbusinessdetailsState();
}
class _addbusinessdetailsState extends State<addbusinessdetails> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(left: 15, right: 24),
child: Row(
children: [
IconButton(
icon: Icon(Icons.arrow_back, size: 24),
onPressed: () {
Navigator.pop(context);
},
),
SizedBox(
width: 20,
),
Text(
'Add Business Detail',
style: TextStyle(
fontSize: 15,
color: Color(0xff3D3D3D),
fontFamily: 'assets/fonts/Manrope-Medium.ttf',
),
),
],
),
),
Padding(
padding: const EdgeInsets.only(top: 30, left: 30, right: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"Website",
style: TextStyle(
fontFamily: "Manrope",
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 14,
color: Color(0xFF333333)),
),
SizedBox(
height: 10,
),
TextField(
decoration: InputDecoration(
border: InputBorder.none,
hintText: "Add if you have...",
),
),
SizedBox(
height: 15,
),
Text(
"Your working days & hours",
style: TextStyle(
fontFamily: "Manrope",
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 14,
color: Color(0xFF333333)),
),
Row(
children: [
DropdownMenuItem(
child: Text("All Days"),
),
Spacer(),
Icon(
Icons.keyboard_arrow_down_rounded,
color: Color(0xFF5C5C5C),
size: 35,
)
],
),
],
),
),
],
),
),
);
}
}