errors cleared design changed

This commit is contained in:
vignesh 2022-05-31 19:18:18 +05:30
parent cb8b0f588a
commit fcdd325652
22 changed files with 493 additions and 395 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -1,6 +1,8 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:openclosenew/businessaddedsuccess.dart'; import 'package:openclosenew/businessaddedsuccess.dart';
import 'colors.dart';
class addbusiness extends StatefulWidget { class addbusiness extends StatefulWidget {
addbusiness({Key? key}) : super(key: key); addbusiness({Key? key}) : super(key: key);
@ -53,6 +55,7 @@ class _addbusinessState extends State<addbusiness> {
backgroundColor: Colors.white, backgroundColor: Colors.white,
body: SafeArea( body: SafeArea(
child: SingleChildScrollView( child: SingleChildScrollView(
reverse: true,
child: Column( child: Column(
children: [ children: [
Padding( Padding(
@ -72,7 +75,7 @@ class _addbusinessState extends State<addbusiness> {
'Add Business', 'Add Business',
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: Color(0xff3D3D3D), color: DarkGray,
fontFamily: 'assets/fonts/Manrope-Medium.ttf', fontFamily: 'assets/fonts/Manrope-Medium.ttf',
), ),
), ),
@ -84,6 +87,7 @@ class _addbusinessState extends State<addbusiness> {
children: [ children: [
Image.asset( Image.asset(
'assets/images/gallery-icon.png', 'assets/images/gallery-icon.png',
color: primaryColor,
), ),
SizedBox( SizedBox(
height: 10, height: 10,
@ -91,7 +95,7 @@ class _addbusinessState extends State<addbusiness> {
Text( Text(
'Uploading Logo', 'Uploading Logo',
style: TextStyle( style: TextStyle(
color: Colors.grey, color: Gray,
fontSize: 14, fontSize: 14,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontFamily: 'Manrope'), fontFamily: 'Manrope'),
@ -119,7 +123,7 @@ class _addbusinessState extends State<addbusiness> {
style: TextStyle( style: TextStyle(
fontFamily: "Manrope", fontFamily: "Manrope",
fontSize: 14, fontSize: 14,
color: Color(0xff333333), color: DarkGray,
), ),
), ),
), ),
@ -150,7 +154,7 @@ class _addbusinessState extends State<addbusiness> {
style: TextStyle( style: TextStyle(
fontFamily: "Manrope", fontFamily: "Manrope",
fontSize: 14, fontSize: 14,
color: Color(0xff333333), color: DarkGray,
), ),
), ),
), ),
@ -179,7 +183,7 @@ class _addbusinessState extends State<addbusiness> {
style: TextStyle( style: TextStyle(
fontFamily: "Manrope", fontFamily: "Manrope",
fontSize: 14, fontSize: 14,
color: Color(0xff333333), color: DarkGray,
), ),
), ),
), ),
@ -208,11 +212,17 @@ class _addbusinessState extends State<addbusiness> {
SizedBox( SizedBox(
width: 28, width: 28,
), ),
Text('Industry'), Text(
'Industry',
style: TextStyle(color: DarkGray),
),
SizedBox( SizedBox(
width: 120, width: 120,
), ),
Text('Category'), Text(
'Category',
style: TextStyle(color: DarkGray),
),
], ],
), ),
), ),
@ -296,7 +306,7 @@ class _addbusinessState extends State<addbusiness> {
style: TextStyle( style: TextStyle(
fontFamily: "Manrope", fontFamily: "Manrope",
fontSize: 14, fontSize: 14,
color: Color(0xff333333), color: DarkGray,
), ),
), ),
), ),
@ -317,34 +327,34 @@ class _addbusinessState extends State<addbusiness> {
hintText: 'Type here...', hintText: 'Type here...',
suffixIcon: Icon( suffixIcon: Icon(
Icons.location_on_outlined, Icons.location_on_outlined,
color: Color(0xff09CD99), color: primaryColor,
), ),
), ),
), ),
), ),
SizedBox(
height: 33,
),
MaterialButton(
height: 50,
minWidth: double.infinity,
color: Color(0xff12C193),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => businessaddedsuccess()));
},
child: Text(
'Save',
style: TextStyle(color: Colors.white, fontSize: 15),
),
),
], ],
), ),
], ],
), ),
), ),
SizedBox(
height: 50,
),
MaterialButton(
height: 50,
minWidth: double.infinity,
color: primaryColor,
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => businessaddedsuccess()));
},
child: Text(
'Save',
style: TextStyle(color: White, fontSize: 15),
),
),
], ],
), ),
), ),

View File

@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_switch/flutter_switch.dart'; import 'package:flutter_switch/flutter_switch.dart';
import '07_addbusiness.dart'; import '07_addbusiness.dart';
import 'businessdetail.dart'; import 'businessdetail.dart';
import 'colors.dart';
class businesshome extends StatefulWidget { class businesshome extends StatefulWidget {
const businesshome({Key? key}) : super(key: key); const businesshome({Key? key}) : super(key: key);
@ -50,7 +51,7 @@ class _businesshomeState extends State<businesshome> {
Text( Text(
'Hi, Sudharsan', 'Hi, Sudharsan',
style: TextStyle( style: TextStyle(
color: Colors.black, color: DarkGray,
fontSize: 16, fontSize: 16,
fontFamily: 'Manrope', fontFamily: 'Manrope',
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
@ -64,6 +65,7 @@ class _businesshomeState extends State<businesshome> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 11, fontSize: 11,
color: Gray,
), ),
), ),
], ],
@ -290,6 +292,7 @@ class _businesshomeState extends State<businesshome> {
fontFamily: 'Manrope', fontFamily: 'Manrope',
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: DarkGray,
), ),
), ),
), ),
@ -300,7 +303,7 @@ class _businesshomeState extends State<businesshome> {
child: TextButton.icon( child: TextButton.icon(
icon: Icon( icon: Icon(
Icons.add, Icons.add,
color: Color(0xFF09CD99), color: primaryColor,
), ),
label: Text( label: Text(
"Add Business", "Add Business",
@ -309,7 +312,7 @@ class _businesshomeState extends State<businesshome> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 15, fontSize: 15,
color: Color(0xFF09CD99), color: primaryColor,
), ),
), ),
onPressed: () { onPressed: () {
@ -775,7 +778,7 @@ class _businesshomeState extends State<businesshome> {
), ),
], ],
currentIndex: _selectedIndex, currentIndex: _selectedIndex,
selectedItemColor: Color(0xff09CD99), selectedItemColor: primaryColor,
onTap: _onItemTapped, onTap: _onItemTapped,
), ),
], ],

View File

@ -2,6 +2,7 @@ import 'package:dotted_border/dotted_border.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_switch/flutter_switch.dart'; import 'package:flutter_switch/flutter_switch.dart';
import 'package:openclosenew/15_addbusinessdetails.dart'; import 'package:openclosenew/15_addbusinessdetails.dart';
import 'package:openclosenew/colors.dart';
class businessdetailsempty extends StatefulWidget { class businessdetailsempty extends StatefulWidget {
const businessdetailsempty({Key? key}) : super(key: key); const businessdetailsempty({Key? key}) : super(key: key);
@ -140,6 +141,7 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
'assets/images/insert_logo.png', 'assets/images/insert_logo.png',
width: 30, width: 30,
height: 30, height: 30,
color: primaryColor,
), ),
Text( Text(
"LOGO", "LOGO",
@ -148,7 +150,7 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
letterSpacing: 0.25, letterSpacing: 0.25,
color: Color(0xFF5C5C5C), color: Gray,
), ),
), ),
], ],
@ -170,7 +172,7 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 20, fontSize: 20,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
), ),
@ -247,7 +249,7 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 12, fontSize: 12,
color: Color(0xFF5C5C5C), color: Gray,
), ),
), ),
], ],
@ -276,7 +278,7 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 12, fontSize: 12,
color: Color(0xFF5C5C5C), color: Gray,
), ),
), ),
], ],
@ -299,7 +301,7 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
child: DottedBorder( child: DottedBorder(
dashPattern: [5, 5, 5, 5], dashPattern: [5, 5, 5, 5],
padding: EdgeInsets.all(15), padding: EdgeInsets.all(15),
color: Color(0xff09CD99), color: primaryColor,
child: Row( child: Row(
children: [ children: [
Text( Text(
@ -309,13 +311,13 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 13, fontSize: 13,
color: Color(0xff09CD99), color: primaryColor,
), ),
), ),
Spacer(), Spacer(),
Icon( Icon(
Icons.arrow_forward_ios_rounded, Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99), color: primaryColor,
size: 20, size: 20,
), ),
], ],
@ -362,13 +364,13 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 15, fontSize: 15,
color: Color(0xff09CD99), color: primaryColor,
), ),
), ),
Spacer(), Spacer(),
Icon( Icon(
Icons.arrow_forward_ios_rounded, Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99), color: primaryColor,
size: 20, size: 20,
) )
], ],
@ -400,13 +402,13 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 15, fontSize: 15,
color: Color(0xff09CD99), color: primaryColor,
), ),
), ),
Spacer(), Spacer(),
Icon( Icon(
Icons.arrow_forward_ios_rounded, Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99), color: primaryColor,
size: 20, size: 20,
) )
], ],
@ -438,13 +440,13 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 15, fontSize: 15,
color: Color(0xff09CD99), color: primaryColor,
), ),
), ),
Spacer(), Spacer(),
Icon( Icon(
Icons.arrow_forward_ios_rounded, Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99), color: primaryColor,
size: 20, size: 20,
) )
], ],
@ -476,13 +478,13 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 15, fontSize: 15,
color: Color(0xff09CD99), color: primaryColor,
), ),
), ),
Spacer(), Spacer(),
Icon( Icon(
Icons.arrow_forward_ios_rounded, Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99), color: primaryColor,
size: 20, size: 20,
) )
], ],
@ -514,13 +516,13 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 15, fontSize: 15,
color: Color(0xff09CD99), color: primaryColor,
), ),
), ),
Spacer(), Spacer(),
Icon( Icon(
Icons.arrow_forward_ios_rounded, Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99), color: primaryColor,
size: 20, size: 20,
) )
], ],

View File

@ -1,4 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:openclosenew/businessdetail.dart';
import 'package:openclosenew/colors.dart';
import '17-BusinessProfileFormSuccess.dart'; import '17-BusinessProfileFormSuccess.dart';
@ -60,7 +62,7 @@ class _addbusinessdetailsState extends State<addbusinessdetails> {
'Add Business Detail', 'Add Business Detail',
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: Color(0xff3D3D3D), color: DarkGray,
fontFamily: 'assets/fonts/Manrope-Medium.ttf', fontFamily: 'assets/fonts/Manrope-Medium.ttf',
), ),
), ),
@ -75,11 +77,12 @@ class _addbusinessdetailsState extends State<addbusinessdetails> {
Text( Text(
"Website", "Website",
style: TextStyle( style: TextStyle(
fontFamily: "Manrope", fontFamily: "Manrope",
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
fontSize: 15, fontSize: 15,
color: Color(0xFF333333)), color: DarkGray,
),
), ),
SizedBox( SizedBox(
height: 10, height: 10,
@ -100,7 +103,7 @@ class _addbusinessdetailsState extends State<addbusinessdetails> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
fontSize: 15, fontSize: 15,
color: Color(0xFF333333), color: DarkGray,
), ),
), ),
SizedBox( SizedBox(
@ -137,6 +140,7 @@ class _addbusinessdetailsState extends State<addbusinessdetails> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
fontSize: 15, fontSize: 15,
color: DarkGray,
), ),
), ),
SizedBox( SizedBox(
@ -149,6 +153,7 @@ class _addbusinessdetailsState extends State<addbusinessdetails> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
fontSize: 15, fontSize: 15,
color: DarkGray,
), ),
), ),
], ],
@ -186,7 +191,7 @@ class _addbusinessdetailsState extends State<addbusinessdetails> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontSize: 15, fontSize: 15,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
Spacer(), Spacer(),
@ -222,7 +227,7 @@ class _addbusinessdetailsState extends State<addbusinessdetails> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontSize: 15, fontSize: 15,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
Spacer(), Spacer(),
@ -239,30 +244,31 @@ class _addbusinessdetailsState extends State<addbusinessdetails> {
Spacer(), Spacer(),
Row( Row(
children: [ children: [
Padding(
padding:
const EdgeInsets.only(left: 55, right: 20, bottom: 24),
child: TextButton(
onPressed: () {
Navigator.pop(context);
},
child: Text(
"Cancel",
style: TextStyle(color: Colors.grey.shade600),
),
),
),
SizedBox(
width: 50,
),
Expanded( Expanded(
child: Padding( child: Padding(
padding: padding: const EdgeInsets.only(left: 24, bottom: 24),
const EdgeInsets.only(left: 0, right: 24, bottom: 24),
child: MaterialButton( child: MaterialButton(
height: 50, height: 50,
minWidth: double.infinity, minWidth: double.infinity,
color: Color(0xff12C193), shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)),
onPressed: () {
Navigator.pop(context);
},
child: Text(
"Cancel",
style: TextStyle(color: Gray),
),
),
),
),
Expanded(
child: Padding(
padding: const EdgeInsets.only(right: 24, bottom: 24),
child: MaterialButton(
height: 50,
minWidth: double.infinity,
color: primaryColor,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)), borderRadius: BorderRadius.circular(4)),
onPressed: () { onPressed: () {
@ -273,7 +279,7 @@ class _addbusinessdetailsState extends State<addbusinessdetails> {
}, },
child: Text( child: Text(
'Save', 'Save',
style: TextStyle(color: Colors.white, fontSize: 15), style: TextStyle(color: White, fontSize: 15),
), ),
), ),
), ),

View File

@ -1,5 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import '15_addbusinessdetails.dart'; import 'package:openclosenew/colors.dart';
import '19-AddProductFrom.dart'; import '19-AddProductFrom.dart';
class profileformsuccess extends StatelessWidget { class profileformsuccess extends StatelessWidget {
@ -14,8 +14,12 @@ class profileformsuccess extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Spacer(), Spacer(),
Image.asset('assets/images/success_vector.png', Image.asset(
width: 100, height: 100), 'assets/images/success_vector.png',
color: primaryColor,
width: 100,
height: 100,
),
Align( Align(
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(
@ -25,7 +29,7 @@ class profileformsuccess extends StatelessWidget {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontSize: 25, fontSize: 25,
color: Color(0xFF09CD99), color: primaryColor,
), ),
), ),
), ),
@ -36,7 +40,7 @@ class profileformsuccess extends StatelessWidget {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontSize: 15, fontSize: 15,
color: Color(0xFF333333), color: DarkGray,
), ),
), ),
Spacer(), Spacer(),
@ -45,7 +49,7 @@ class profileformsuccess extends StatelessWidget {
child: MaterialButton( child: MaterialButton(
height: 50, height: 50,
minWidth: double.infinity, minWidth: double.infinity,
color: Color(0xFF09CD99), color: primaryColor,
onPressed: () { onPressed: () {
Navigator.push(context, Navigator.push(context,
MaterialPageRoute(builder: (_) => addproductfrom())); MaterialPageRoute(builder: (_) => addproductfrom()));
@ -57,7 +61,7 @@ class profileformsuccess extends StatelessWidget {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 15, fontSize: 15,
color: Colors.white), color: White),
), ),
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(5), borderRadius: BorderRadius.circular(5),

View File

@ -1,5 +1,7 @@
import 'package:dotted_border/dotted_border.dart'; import 'package:dotted_border/dotted_border.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:openclosenew/businessdetail.dart';
import 'package:openclosenew/colors.dart';
class addproductfrom extends StatefulWidget { class addproductfrom extends StatefulWidget {
const addproductfrom({Key? key}) : super(key: key); const addproductfrom({Key? key}) : super(key: key);
@ -27,248 +29,292 @@ class _addproductfromState extends State<addproductfrom> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
loadData(); loadData();
return Scaffold( return Scaffold(
body: SingleChildScrollView( body: SafeArea(
child: SafeArea( child: Column(
child: Column( crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, children: [
children: [ Padding(
Padding( padding: const EdgeInsets.only(left: 10),
padding: const EdgeInsets.only(left: 10), child: Row(
child: Row( children: [
children: [ IconButton(
IconButton( icon: Icon(Icons.arrow_back, size: 24),
icon: Icon(Icons.arrow_back, size: 24), onPressed: () {
Navigator.pop(context);
},
),
SizedBox(
width: 20,
),
Text(
'Add Business Detail',
style: TextStyle(
fontSize: 15,
color: DarkGray,
fontFamily: 'assets/fonts/Manrope-Medium.ttf',
),
),
],
),
),
Padding(
padding: const EdgeInsets.only(left: 25, top: 20, right: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Item Name',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 15,
color: DarkGray,
),
),
SizedBox(
height: 20,
),
TextField(
decoration: InputDecoration(
contentPadding:
EdgeInsets.only(left: 10, top: 10, bottom: 10),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(5)),
hintText: 'Type here...',
),
),
SizedBox(
height: 20,
),
Text(
'Category',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 15,
color: DarkGray,
),
),
],
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 25, right: 20),
child: Expanded(
child: InputDecorator(
decoration: InputDecoration(
contentPadding:
EdgeInsets.only(left: 10, top: 1, bottom: 1, right: 5),
border: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(5)),
),
),
child: DropdownButtonHideUnderline(
child: new DropdownButton(
borderRadius: BorderRadius.circular(5),
value: selected,
items: listDrop,
icon: Icon(Icons.keyboard_arrow_down, size: 24),
hint: new Text('Choose...'),
onChanged: (value) {
selected = value as String?;
setState(() {});
},
),
),
),
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 25),
child: Text(
'Price',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 15,
color: DarkGray,
),
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 25, right: 20),
child: TextField(
keyboardType: TextInputType.number,
decoration: InputDecoration(
prefixIcon: Image.asset(
'assets/images/dollor.png',
width: 10,
height: 10,
),
contentPadding:
EdgeInsets.only(left: 10, top: 10, bottom: 10),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(5),
),
hintText: '00.00',
),
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 25),
child: Text(
'Upload photo',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 15,
color: DarkGray,
),
),
),
InkWell(
onTap: () {
showModalBottomSheet<void>(
context: context,
builder: (BuildContext context) {
return Container(
height: 200,
color: Colors.white,
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
SizedBox(
height: 20,
),
Text(
"Choose You Image",
style: TextStyle(
fontSize: 20,
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.bold),
),
SizedBox(height: 30),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
IconButton(
onPressed: () {},
icon: Icon(Icons.camera),
iconSize: 30,
),
Text(
'Camera',
style: TextStyle(
fontSize: 15,
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
color: Color(0xFF333333),
),
),
SizedBox(
width: 50,
),
IconButton(
onPressed: () {},
icon: Icon(Icons.image_rounded),
iconSize: 30,
),
Text(
'Gallery',
style: TextStyle(
fontSize: 15,
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
color: Color(0xFF333333),
),
),
],
)
],
),
),
);
},
);
},
child: Padding(
padding: const EdgeInsets.only(left: 25, top: 5),
child: DottedBorder(
padding: EdgeInsets.all(45),
dashPattern: [4, 4, 4, 4],
radius: Radius.circular(10),
color: primaryColor,
child: Image.asset(
'assets/images/insert_logo.png',
width: 30,
height: 30,
color: primaryColor,
),
),
),
),
Spacer(),
Row(
children: [
Expanded(
child: Padding(
padding: const EdgeInsets.only(left: 24, bottom: 24),
child: MaterialButton(
height: 50,
minWidth: double.infinity,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
), child: Text(
SizedBox( "Cancel",
width: 20, style: TextStyle(color: Gray),
),
Text(
'Add Business Detail',
style: TextStyle(
fontSize: 15,
color: Color(0xff3D3D3D),
fontFamily: 'assets/fonts/Manrope-Medium.ttf',
),
),
],
),
),
Padding(
padding: const EdgeInsets.only(left: 25, top: 20, right: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Item Name',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 15,
color: Color(0xff333333),
),
),
SizedBox(
height: 20,
),
TextField(
decoration: InputDecoration(
contentPadding:
EdgeInsets.only(left: 10, top: 10, bottom: 10),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(5)),
hintText: 'Type here...',
),
),
SizedBox(
height: 20,
),
Text(
'Category',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 15,
color: Color(0xff333333),
),
),
],
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 25, right: 20),
child: Expanded(
child: InputDecorator(
decoration: InputDecoration(
contentPadding: EdgeInsets.only(
left: 10, top: 1, bottom: 1, right: 5),
border: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(5)),
),
),
child: DropdownButtonHideUnderline(
child: new DropdownButton(
borderRadius: BorderRadius.circular(5),
value: selected,
items: listDrop,
icon: Icon(Icons.keyboard_arrow_down, size: 24),
hint: new Text('Choose...'),
onChanged: (value) {
selected = value as String?;
setState(() {});
},
), ),
), ),
), ),
), ),
), Expanded(
SizedBox( child: Padding(
height: 20, padding: const EdgeInsets.only(right: 24, bottom: 24),
), child: MaterialButton(
Padding( height: 50,
padding: const EdgeInsets.only(left: 25), minWidth: double.infinity,
child: Text( color: primaryColor,
'Price', shape: RoundedRectangleBorder(
style: TextStyle( borderRadius: BorderRadius.circular(4)),
fontFamily: 'Manrope', onPressed: () {
fontStyle: FontStyle.normal, Navigator.push(
fontWeight: FontWeight.w300, context,
fontSize: 15, MaterialPageRoute(
color: Color(0xff333333), builder: (_) => businessdetail()));
), },
), child: Text(
), 'Save',
SizedBox( style: TextStyle(color: White, fontSize: 15),
height: 20, ),
),
Padding(
padding: const EdgeInsets.only(left: 25, right: 20),
child: TextField(
keyboardType: TextInputType.number,
decoration: InputDecoration(
prefixIcon: Image.asset(
'assets/images/dollor.png',
width: 10,
height: 10,
),
contentPadding:
EdgeInsets.only(left: 10, top: 10, bottom: 10),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(5),
),
hintText: '00.00',
),
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 25),
child: Text(
'Upload photo',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 15,
color: Color(0xff333333),
),
),
),
InkWell(
onTap: () {
showModalBottomSheet<void>(
context: context,
builder: (BuildContext context) {
return Container(
height: 200,
color: Colors.white,
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
SizedBox(
height: 20,
),
Text(
"Choose You Image",
style: TextStyle(
fontSize: 20,
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.bold),
),
SizedBox(height: 30),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
IconButton(
onPressed: () {},
icon: Icon(Icons.camera),
iconSize: 30,
),
Text(
'Camera',
style: TextStyle(
fontSize: 15,
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
color: Color(0xFF333333),
),
),
SizedBox(
width: 50,
),
IconButton(
onPressed: () {},
icon: Icon(Icons.image_rounded),
iconSize: 30,
),
Text(
'Gallery',
style: TextStyle(
fontSize: 15,
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
color: Color(0xFF333333),
),
),
],
)
],
),
),
);
},
);
},
child: Padding(
padding: const EdgeInsets.only(left: 25, top: 5),
child: DottedBorder(
padding: EdgeInsets.all(45),
dashPattern: [4, 4, 4, 4],
radius: Radius.circular(10),
color: Color(0xFF09CD99),
child: Image.asset(
'assets/images/insert_logo.png',
width: 30,
height: 30,
), ),
), ),
), ),
), ],
], ),
), ],
), ),
), ),
); );

View File

@ -1,5 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:openclosenew/businessempty.dart'; import 'package:openclosenew/businessempty.dart';
import 'package:openclosenew/colors.dart';
class businessaddedsuccess extends StatelessWidget { class businessaddedsuccess extends StatelessWidget {
const businessaddedsuccess({Key? key}) : super(key: key); const businessaddedsuccess({Key? key}) : super(key: key);
@ -25,7 +26,7 @@ class businessaddedsuccess extends StatelessWidget {
"Yay!", "Yay!",
style: TextStyle( style: TextStyle(
fontSize: 24, fontSize: 24,
color: Color(0xff12C193), color: primaryColor,
), ),
), ),
SizedBox( SizedBox(
@ -35,14 +36,14 @@ class businessaddedsuccess extends StatelessWidget {
"Your business added successfully", "Your business added successfully",
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: Colors.black, color: DarkGray,
), ),
), ),
Spacer(), Spacer(),
MaterialButton( MaterialButton(
height: 50, height: 50,
minWidth: double.infinity, minWidth: double.infinity,
color: Color(0xff12C193), color: primaryColor,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)), borderRadius: BorderRadius.circular(4)),
onPressed: () { onPressed: () {
@ -51,7 +52,7 @@ class businessaddedsuccess extends StatelessWidget {
}, },
child: Text( child: Text(
'Lets Explore', 'Lets Explore',
style: TextStyle(color: Colors.white, fontSize: 15), style: TextStyle(color: White, fontSize: 15),
), ),
), ),
], ],

View File

@ -3,6 +3,8 @@ import 'package:flutter_switch/flutter_switch.dart';
import 'package:openclosenew/14_businessdetailsempty.dart'; import 'package:openclosenew/14_businessdetailsempty.dart';
import 'package:smooth_page_indicator/smooth_page_indicator.dart'; import 'package:smooth_page_indicator/smooth_page_indicator.dart';
import 'colors.dart';
class businessdetail extends StatefulWidget { class businessdetail extends StatefulWidget {
const businessdetail({Key? key}) : super(key: key); const businessdetail({Key? key}) : super(key: key);
@ -44,7 +46,7 @@ class _businessdetailState extends State<businessdetail> {
Container( Container(
height: 250, height: 250,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.grey.withOpacity(0.5), color: Colors.grey.withOpacity(0.6),
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(20), bottomLeft: Radius.circular(20),
bottomRight: Radius.circular(20), bottomRight: Radius.circular(20),
@ -60,7 +62,7 @@ class _businessdetailState extends State<businessdetail> {
child: Icon( child: Icon(
Icons.arrow_back, Icons.arrow_back,
size: 24, size: 24,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
mini: true, mini: true,
backgroundColor: Colors.white, backgroundColor: Colors.white,
@ -113,8 +115,8 @@ class _businessdetailState extends State<businessdetail> {
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: Colors.grey.shade500, color: Colors.grey.shade500,
offset: Offset(4.0, 4.0), offset: Offset(4.0, 5.0),
blurRadius: 10.0, blurRadius: 5.0,
spreadRadius: 1.0, spreadRadius: 1.0,
), ),
], ],
@ -150,7 +152,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 20, fontSize: 20,
color: Colors.black, color: DarkGray,
), ),
), ),
), ),
@ -184,7 +186,7 @@ class _businessdetailState extends State<businessdetail> {
IconButton( IconButton(
icon: Image.asset( icon: Image.asset(
'assets/images/edit_pen.png', 'assets/images/edit_pen.png',
color: Colors.black, color: DarkGray,
), ),
onPressed: () { onPressed: () {
Navigator.push( Navigator.push(
@ -221,7 +223,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontSize: 13, fontSize: 13,
color: Colors.black), color: Gray),
), ),
SizedBox( SizedBox(
width: 10, width: 10,
@ -241,7 +243,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontSize: 13, fontSize: 13,
color: Colors.black), color: Gray),
), ),
], ],
), ),
@ -268,7 +270,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 12, fontSize: 12,
color: Color(0xFF5C5C5C), color: Gray,
), ),
), ),
], ],
@ -297,7 +299,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 12, fontSize: 12,
color: Color(0xFF5C5C5C), color: Gray,
), ),
), ),
], ],
@ -323,7 +325,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 12, fontSize: 12,
color: Color(0xFF5C5C5C), color: Gray,
), ),
), ),
], ],
@ -350,7 +352,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 12, fontSize: 12,
color: Color(0xFF5C5C5C), color: Gray,
), ),
), ),
], ],
@ -411,7 +413,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
fontSize: 20, fontSize: 20,
color: Color(0xFF09CD99), color: primaryColor,
), ),
), ),
Text( Text(
@ -421,7 +423,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontSize: 15, fontSize: 15,
color: Color(0xFF5C5C5C), color: Gray,
), ),
), ),
], ],
@ -468,7 +470,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
fontSize: 20, fontSize: 20,
color: Color(0xFF09CD99), color: primaryColor,
), ),
), ),
Text( Text(
@ -478,7 +480,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontSize: 15, fontSize: 15,
color: Color(0xFF5C5C5C), color: Gray,
), ),
), ),
], ],
@ -514,7 +516,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 20, fontSize: 20,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
Spacer(), Spacer(),
@ -567,7 +569,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 15, fontSize: 15,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
Text( Text(
@ -577,7 +579,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 15, fontSize: 15,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
], ],
@ -614,7 +616,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 15, fontSize: 15,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
Text( Text(
@ -624,7 +626,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 15, fontSize: 15,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
], ],
@ -663,7 +665,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 15, fontSize: 15,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
Text( Text(
@ -673,7 +675,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 15, fontSize: 15,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
], ],
@ -697,7 +699,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 20, fontSize: 20,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
Spacer(), Spacer(),
@ -798,7 +800,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 20, fontSize: 20,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
Spacer(), Spacer(),
@ -851,7 +853,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 15, fontSize: 15,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
Text( Text(
@ -861,7 +863,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 12, fontSize: 12,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
], ],
@ -898,7 +900,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 15, fontSize: 15,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
Text( Text(
@ -908,7 +910,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 12, fontSize: 12,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
], ],
@ -947,7 +949,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 15, fontSize: 15,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
Text( Text(
@ -957,7 +959,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 12, fontSize: 12,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
], ],
@ -981,7 +983,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 20, fontSize: 20,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
Spacer(), Spacer(),
@ -1035,7 +1037,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
fontSize: 20, fontSize: 20,
color: Color(0xFF09CD99), color: primaryColor,
), ),
), ),
Text( Text(
@ -1045,7 +1047,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontSize: 15, fontSize: 15,
color: Color(0xFF5C5C5C), color: Gray,
), ),
), ),
], ],
@ -1086,7 +1088,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
fontSize: 20, fontSize: 20,
color: Color(0xFF09CD99), color: primaryColor,
), ),
), ),
Text( Text(
@ -1096,7 +1098,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontSize: 15, fontSize: 15,
color: Color(0xFF5C5C5C), color: Gray,
), ),
), ),
], ],
@ -1121,7 +1123,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 20, fontSize: 20,
color: Color(0xFF3D3D3D), color: DarkGray,
), ),
), ),
Spacer(), Spacer(),
@ -1177,7 +1179,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
fontSize: 20, fontSize: 20,
color: Color(0xFF09CD99), color: primaryColor,
), ),
), ),
Padding( Padding(
@ -1197,7 +1199,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontSize: 15, fontSize: 15,
color: Color(0xFF5C5C5C), color: Gray,
), ),
), ),
], ],
@ -1240,7 +1242,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
fontSize: 20, fontSize: 20,
color: Color(0xFF09CD99), color: primaryColor,
), ),
), ),
Padding( Padding(
@ -1260,7 +1262,7 @@ class _businessdetailState extends State<businessdetail> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontSize: 15, fontSize: 15,
color: Color(0xFF5C5C5C), color: Gray,
), ),
), ),
], ],

View File

@ -2,6 +2,8 @@ import 'package:flutter/material.dart';
import 'package:dotted_border/dotted_border.dart'; import 'package:dotted_border/dotted_border.dart';
import 'package:openclosenew/11_busiesshome.dart'; import 'package:openclosenew/11_busiesshome.dart';
import 'colors.dart';
class businessempty extends StatefulWidget { class businessempty extends StatefulWidget {
const businessempty({Key? key}) : super(key: key); const businessempty({Key? key}) : super(key: key);
@ -55,7 +57,7 @@ class _businessemptyState extends State<businessempty> {
margin: EdgeInsets.all(20), margin: EdgeInsets.all(20),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(50), borderRadius: BorderRadius.circular(50),
color: Colors.grey, color: Gray,
), ),
), ),
Column( Column(
@ -67,7 +69,7 @@ class _businessemptyState extends State<businessempty> {
Text( Text(
'Hi, Sudharsan', 'Hi, Sudharsan',
style: TextStyle( style: TextStyle(
color: Colors.black, color: DarkGray,
fontSize: 16, fontSize: 16,
fontFamily: 'Manrope', fontFamily: 'Manrope',
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
@ -81,6 +83,7 @@ class _businessemptyState extends State<businessempty> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 11, fontSize: 11,
color: Gray,
), ),
), ),
], ],
@ -105,7 +108,7 @@ class _businessemptyState extends State<businessempty> {
children: [ children: [
DottedBorder( DottedBorder(
dashPattern: [5, 5, 5, 5], dashPattern: [5, 5, 5, 5],
color: Color(0xff09CD99), color: primaryColor,
padding: EdgeInsets.all(5), padding: EdgeInsets.all(5),
radius: Radius.circular(6), radius: Radius.circular(6),
child: Container( child: Container(
@ -115,7 +118,10 @@ class _businessemptyState extends State<businessempty> {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
IconButton( IconButton(
icon: Image.asset('assets/images/shop.png'), icon: Image.asset(
'assets/images/shop.png',
color: primaryColor,
),
onPressed: () { onPressed: () {
Navigator.push( Navigator.push(
context, context,
@ -130,7 +136,7 @@ class _businessemptyState extends State<businessempty> {
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
fontSize: 14, fontSize: 14,
color: Color(0xff09CD99), color: primaryColor,
), ),
) )
], ],
@ -178,7 +184,7 @@ class _businessemptyState extends State<businessempty> {
), ),
], ],
currentIndex: _selectedIndex, currentIndex: _selectedIndex,
selectedItemColor: Color(0xff09CD99), selectedItemColor: primaryColor,
onTap: _onItemTapped, onTap: _onItemTapped,
), ),
], ],

View File

@ -1,5 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:openclosenew/07_addbusiness.dart'; import 'package:openclosenew/07_addbusiness.dart';
import 'package:openclosenew/colors.dart';
import 'businessempty.dart'; import 'businessempty.dart';
@ -24,7 +25,7 @@ class _businessState extends State<business> {
'Lets add your business...', 'Lets add your business...',
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: Colors.black, color: DarkGray,
), ),
), ),
Spacer(), Spacer(),
@ -44,8 +45,7 @@ class _businessState extends State<business> {
}, },
child: Text( child: Text(
'Skip', 'Skip',
style: style: TextStyle(color: Gray, fontSize: 15),
TextStyle(color: Colors.grey.shade600, fontSize: 15),
), ),
), ),
), ),
@ -56,7 +56,7 @@ class _businessState extends State<business> {
child: MaterialButton( child: MaterialButton(
height: 50, height: 50,
minWidth: double.infinity, minWidth: double.infinity,
color: Color(0xff12C193), color: primaryColor,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)), borderRadius: BorderRadius.circular(4)),
onPressed: () { onPressed: () {
@ -65,7 +65,7 @@ class _businessState extends State<business> {
}, },
child: Text( child: Text(
'Add Now', 'Add Now',
style: TextStyle(color: Colors.white, fontSize: 15), style: TextStyle(color: White, fontSize: 15),
), ),
), ),
), ),

View File

@ -0,0 +1,6 @@
import 'package:flutter/material.dart';
const Color primaryColor = Color(0xFF09CD99);
const Color DarkGray = Color(0xFF333333);
const Color Gray = Color(0xFF5C5C5C);
const Color White = Color(0xFFFFFFFF);

View File

@ -0,0 +1,3 @@
double TitleText = 24;
double HeadText = 15;
double SubText = 12;

View File

@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:openclosenew/colors.dart';
import 'package:openclosenew/verification.dart'; import 'package:openclosenew/verification.dart';
class Register extends StatelessWidget { class Register extends StatelessWidget {
@ -24,7 +25,7 @@ class Register extends StatelessWidget {
"Welcome!", "Welcome!",
style: TextStyle( style: TextStyle(
fontSize: 24, fontSize: 24,
color: Color(0xff12C193), color: primaryColor,
), ),
), ),
SizedBox( SizedBox(
@ -34,7 +35,7 @@ class Register extends StatelessWidget {
"Enter your mobile number to verification ", "Enter your mobile number to verification ",
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
color: Colors.black, color: DarkGray,
), ),
), ),
SizedBox( SizedBox(
@ -65,7 +66,7 @@ class Register extends StatelessWidget {
MaterialButton( MaterialButton(
height: 50, height: 50,
minWidth: double.infinity, minWidth: double.infinity,
color: Color(0xff12C193), color: primaryColor,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)), borderRadius: BorderRadius.circular(4)),
onPressed: () { onPressed: () {
@ -74,7 +75,7 @@ class Register extends StatelessWidget {
}, },
child: Text( child: Text(
'Get OTP', 'Get OTP',
style: TextStyle(color: Colors.white, fontSize: 15), style: TextStyle(color: White, fontSize: 15),
), ),
), ),
], ],

View File

@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:openclosenew/colors.dart';
import 'package:openclosenew/home_screen.dart'; import 'package:openclosenew/home_screen.dart';
class PageViewModel { class PageViewModel {
@ -82,7 +83,7 @@ class _IntroScreenState extends State<IntroScreen> {
margin: EdgeInsets.only(right: 8), margin: EdgeInsets.only(right: 8),
decoration: BoxDecoration( decoration: BoxDecoration(
color: (pageIndex == i) color: (pageIndex == i)
? Colors.green ? primaryColor
: Colors.green.shade100, : Colors.green.shade100,
borderRadius: BorderRadius.circular(8)), borderRadius: BorderRadius.circular(8)),
), ),
@ -96,10 +97,10 @@ class _IntroScreenState extends State<IntroScreen> {
MaterialPageRoute(builder: (_) => Register())); MaterialPageRoute(builder: (_) => Register()));
}, },
elevation: 0, elevation: 0,
backgroundColor: Colors.green, backgroundColor: primaryColor,
child: Icon( child: Icon(
Icons.arrow_forward_rounded, Icons.arrow_forward_rounded,
color: Colors.white, color: White,
), ),
) )
: TextButton( : TextButton(
@ -108,7 +109,7 @@ class _IntroScreenState extends State<IntroScreen> {
}, },
child: Text( child: Text(
"Skip", "Skip",
style: TextStyle(color: Colors.grey.shade600), style: TextStyle(color: Gray),
), ),
), ),
], ],

View File

@ -1,5 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:openclosenew/iintroduction_screen.dart'; import 'package:openclosenew/iintroduction_screen.dart';
import 'colors.dart';
void main() async { void main() async {
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();
@ -12,7 +13,7 @@ class MyApp extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return MaterialApp(
color: Colors.white, color: White,
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
theme: ThemeData(fontFamily: 'Manrope'), theme: ThemeData(fontFamily: 'Manrope'),
home: const Splash(), home: const Splash(),

View File

@ -1,5 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:openclosenew/businessstart_page.dart'; import 'package:openclosenew/businessstart_page.dart';
import 'colors.dart';
class thankyou extends StatelessWidget { class thankyou extends StatelessWidget {
const thankyou({Key? key}) : super(key: key); const thankyou({Key? key}) : super(key: key);
@ -25,7 +26,7 @@ class thankyou extends StatelessWidget {
"Thank You!", "Thank You!",
style: TextStyle( style: TextStyle(
fontSize: 24, fontSize: 24,
color: Color(0xff12C193), color: primaryColor,
), ),
), ),
SizedBox( SizedBox(
@ -35,14 +36,14 @@ class thankyou extends StatelessWidget {
"Your mobile number verified successfully", "Your mobile number verified successfully",
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: Colors.black, color: DarkGray,
), ),
), ),
Spacer(), Spacer(),
MaterialButton( MaterialButton(
height: 50, height: 50,
minWidth: double.infinity, minWidth: double.infinity,
color: Color(0xff12C193), color: primaryColor,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)), borderRadius: BorderRadius.circular(4)),
onPressed: () { onPressed: () {
@ -51,7 +52,7 @@ class thankyou extends StatelessWidget {
}, },
child: Text( child: Text(
'Lets Explore', 'Lets Explore',
style: TextStyle(color: Colors.white, fontSize: 15), style: TextStyle(color: White, fontSize: 15),
), ),
), ),
], ],

View File

@ -1,5 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_otp_text_field/flutter_otp_text_field.dart'; import 'package:flutter_otp_text_field/flutter_otp_text_field.dart';
import 'package:openclosenew/colors.dart';
import 'package:openclosenew/fontsize.dart';
import 'package:openclosenew/thankyou.dart'; import 'package:openclosenew/thankyou.dart';
class verification extends StatelessWidget { class verification extends StatelessWidget {
@ -28,15 +30,15 @@ class verification extends StatelessWidget {
Text( Text(
'Verification', 'Verification',
style: TextStyle( style: TextStyle(
fontSize: 24, fontSize: TitleText,
color: Color(0xff12C193), color: primaryColor,
), ),
), ),
Spacer(), Spacer(),
Text( Text(
'Enter Verification code', 'Enter Verification code',
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: SubText,
), ),
), ),
Row( Row(
@ -45,7 +47,7 @@ class verification extends StatelessWidget {
padding: const EdgeInsets.only(top: 15), padding: const EdgeInsets.only(top: 15),
child: OtpTextField( child: OtpTextField(
numberOfFields: 5, numberOfFields: 5,
borderColor: Colors.black, borderColor: DarkGray,
), ),
), ),
], ],
@ -59,13 +61,14 @@ class verification extends StatelessWidget {
TextSpan( TextSpan(
text: 'Didnt receive code? ', text: 'Didnt receive code? ',
style: TextStyle( style: TextStyle(
color: Color(0xff333333), fontSize: SubText,
color: DarkGray,
), ),
), ),
TextSpan( TextSpan(
text: ' Resend OTP ', text: ' Resend OTP ',
style: TextStyle( style: TextStyle(
color: Color(0xff12C193), color: primaryColor,
decoration: TextDecoration.underline, decoration: TextDecoration.underline,
), ),
), ),
@ -75,12 +78,14 @@ class verification extends StatelessWidget {
), ),
Spacer(), Spacer(),
Text( Text(
'By clicking “Verify” you are accepting our Terms & Conditions'), 'By clicking “Verify” you are accepting our Terms & Conditions',
Spacer(), style: TextStyle(fontSize: SubText),
),
SizedBox(height: 20),
MaterialButton( MaterialButton(
height: 50, height: 50,
minWidth: double.infinity, minWidth: double.infinity,
color: Color(0xff12C193), color: primaryColor,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)), borderRadius: BorderRadius.circular(4)),
onPressed: () { onPressed: () {
@ -89,7 +94,7 @@ class verification extends StatelessWidget {
}, },
child: Text( child: Text(
'Verify', 'Verify',
style: TextStyle(color: Colors.white, fontSize: 15), style: TextStyle(color: White, fontSize: HeadText),
), ),
), ),
], ],