From d2ea8222a754718efad80695c1f94683509cad4d Mon Sep 17 00:00:00 2001 From: vignesh Date: Fri, 27 May 2022 12:27:43 +0530 Subject: [PATCH] business profile form started --- openclosenew/lib/11_busiesshome.dart | 14 +- openclosenew/lib/14_businessdetailsempty.dart | 237 ++++++++++++++++-- openclosenew/lib/15_addbusinessdetails.dart | 98 ++++++++ 3 files changed, 324 insertions(+), 25 deletions(-) create mode 100644 openclosenew/lib/15_addbusinessdetails.dart diff --git a/openclosenew/lib/11_busiesshome.dart b/openclosenew/lib/11_busiesshome.dart index 6fe709a..fd3a7e4 100644 --- a/openclosenew/lib/11_busiesshome.dart +++ b/openclosenew/lib/11_busiesshome.dart @@ -298,8 +298,9 @@ class _businesshomeState extends State { ), ), ), + 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 { ], ), Container( - height: 350, + height: 380, child: ListView( scrollDirection: Axis.vertical, children: [ @@ -336,8 +337,6 @@ class _businesshomeState extends State { 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 { children: [ Image.asset( 'assets/images/bg.png', - height: 250, ), Column( crossAxisAlignment: CrossAxisAlignment.start, @@ -470,8 +468,7 @@ class _businesshomeState extends State { 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 { 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)), ), diff --git a/openclosenew/lib/14_businessdetailsempty.dart b/openclosenew/lib/14_businessdetailsempty.dart index 69c297c..da19daa 100644 --- a/openclosenew/lib/14_businessdetailsempty.dart +++ b/openclosenew/lib/14_businessdetailsempty.dart @@ -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 { ), ), 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 { ), ), ), - 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 { 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 { ], ), ), + 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, + ) + ], + ), + ), + ), + ], + ), + ), ], ), ), diff --git a/openclosenew/lib/15_addbusinessdetails.dart b/openclosenew/lib/15_addbusinessdetails.dart new file mode 100644 index 0000000..c8ec3cd --- /dev/null +++ b/openclosenew/lib/15_addbusinessdetails.dart @@ -0,0 +1,98 @@ +import 'package:flutter/material.dart'; + +class addbusinessdetails extends StatefulWidget { + const addbusinessdetails({Key? key}) : super(key: key); + + @override + State createState() => _addbusinessdetailsState(); +} + +class _addbusinessdetailsState extends State { + @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, + ) + ], + ), + ], + ), + ), + ], + ), + ), + ); + } +}