From af4800054a0dcd154aabb82aaedd02678d21a799 Mon Sep 17 00:00:00 2001 From: vignesh Date: Tue, 10 May 2022 12:25:08 +0530 Subject: [PATCH] add business 07 add business ui design finished --- openclosenew/assets/images/gallery-icon.png | Bin 0 -> 1243 bytes openclosenew/lib/07_addbusiness.dart | 199 ++++++++++++++++---- openclosenew/pubspec.lock | 56 ++++++ openclosenew/pubspec.yaml | 2 + 4 files changed, 223 insertions(+), 34 deletions(-) create mode 100644 openclosenew/assets/images/gallery-icon.png diff --git a/openclosenew/assets/images/gallery-icon.png b/openclosenew/assets/images/gallery-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..973a7bea785da70924c404ae4b123f573c9dbc8b GIT binary patch literal 1243 zcmV<11SI>3P)1GCosJVkT{WY zf-pB=HZd)UGkI?~ltwf~k&Fyvkq6iu4(I2a_rCe&jR3wgV`UmQ2B(cM3>$fE!pHmm zqQ3MDT6+Oh1?0RvZgboIMM~KQDVsDdEVs_p!)Lv@aR$dO6a1XYawIkvfhMyvfzSZb zIzV}7EZ~ki9mQ4dFZ%B|nHhP86VHAm>74ck`n-itM z80IhX6w6r6K!fqoJA2`yeGe)aapqc#1{zENvv4P6e~s5$X-@Gubb>#hf}s^u1d}pa z*mm-w%l@LqQx9qHd{mtPJ@at?MOKGor{xjTY)j7&!p3xLX1NZtK2tes$4vpPU;fhr z#{MAmxJ&M54So%yE(q8K?S2OAMV;3=%eL~|Vi8dI;MY%!+Rk)o z=jghoS%*a5y_RDai<___n{g=C8Hhl5=|;}G<6Wu0BL|LXRzy?_12T;U3`?|6vIh)L8&7*c9x724 zljtSz6#yz@lszCn&ybz2Sx=(MIKQD^g*jBk?hgLn(W#7!e*x~wO+!@83}9-v=Ak=- z|GGj%hx#?0|Mbvv9)dlCRIXIoLyFLt+9vvuW$S~J=je??Dw8Z^C1c~Ce;@LQZKwMd z_7H(!7UoO(fJK7R#Jx4BA0?uubVZKOK*V}QGO@;;gW&Pg%xoa4MFH}w93Ug@I6yG- zhIRPu$(_rSj$ndBt_wN@bO_VAS7tYoDR^|&Oi@p+?0L!@I-+J+jvO@&y zAxXN(lcokd#D7OcQ(w+_Lnh;En}rO?M`soCWNXg#=oJ{ty)1Rr6MIn6P>b4hoT`PS z0m&%3K%v40kcicsS8l}^+fomJ4@s3tac|a6ZPnJ*qi44UhO$sdqA-@d8-SGi8S_*F zDT`d0tAnAl4R}|*Na&k%m=giXqCJQS=Bg`iyo%L=Aw8SjW&=4E9rOFrt2EH1j`Kc? z#D$O|z^&>-35zVzuq@tW+}?mV!*unh03~FT6gwA?T1A{e(k*snw+Ykoc5eR9F$x$v z!0XzE)|#r^3baODVA;#lsZu{!DUf)$mTIpvOZZ_cvadMnZF{4SL2Lj3002ovPDHLk FV1kT>Im7?} literal 0 HcmV?d00001 diff --git a/openclosenew/lib/07_addbusiness.dart b/openclosenew/lib/07_addbusiness.dart index c560ed8..e88416b 100644 --- a/openclosenew/lib/07_addbusiness.dart +++ b/openclosenew/lib/07_addbusiness.dart @@ -1,19 +1,31 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/widgets.dart'; class addbusiness extends StatelessWidget { - const addbusiness({Key? key}) : super(key: key); + // Initial Selected Value + String dropdownvalue = 'Item 1'; + + // List of items in our dropdown menu + var items = [ + 'Item 1', + 'Item 2', + 'Item 3', + 'Item 4', + 'Item 5', + ]; + addbusiness({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Scaffold( + backgroundColor: Colors.white, body: Column( children: [ SizedBox( height: 50, ), Padding( - padding: const EdgeInsets.only(left: 24, right: 24), + padding: const EdgeInsets.only(left: 15, right: 24), child: Row( children: [ IconButton( @@ -36,41 +48,160 @@ class addbusiness extends StatelessWidget { ], ), ), - Column( - children: [ - CircleAvatar( - radius: 80, - backgroundImage: AssetImage('assets/images/img_icon.png'), - backgroundColor: Colors.white, - ), - SizedBox( - height: 5, - ), - Padding( - padding: const EdgeInsets.only(left: 24, right: 265), - child: Text( - 'Business Name', - textAlign: TextAlign.start, + Spacer(), + Container( + child: Column( + children: [ + Image.asset( + 'assets/images/gallery-icon.png', ), - ), - SizedBox( - height: 10, - ), - Padding( - padding: const EdgeInsets.only(left: 24, right: 24), - child: TextField( - decoration: InputDecoration( - border: OutlineInputBorder( - borderRadius: BorderRadius.circular(10.0), - ), - hintText: 'Type here...', - hintStyle: TextStyle( - color: Color(0xff3D3D3D), + SizedBox( + height: 10, + ), + Text( + 'Uploading Logo', + style: TextStyle( + color: Colors.grey, + fontSize: 14, + fontWeight: FontWeight.w400, + fontFamily: 'Manrope'), + ), + ], + ), + decoration: BoxDecoration( + shape: BoxShape.circle, + color: Colors.black, + ), + margin: EdgeInsets.all(24), + padding: EdgeInsets.all(45), + ), + Spacer(), + Container( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: const EdgeInsets.only( + left: 24, + top: 10, + right: 24, + ), + child: Text( + 'Business Name', + style: TextStyle( + fontFamily: "Manrope", + fontSize: 14, + color: Color(0xff333333), ), ), ), - ) - ], + Padding( + padding: const EdgeInsets.only(left: 24, right: 24, top: 10), + child: TextField( + decoration: InputDecoration( + border: InputBorder.none, + hintText: 'Type here...', + ), + ), + ), + Padding( + padding: const EdgeInsets.only( + left: 24, + top: 10, + right: 24, + ), + child: Text( + 'Contact Number', + style: TextStyle( + fontFamily: "Manrope", + fontSize: 14, + color: Color(0xff333333), + ), + ), + ), + Padding( + padding: const EdgeInsets.only(left: 24, right: 24, top: 10), + child: TextField( + decoration: InputDecoration( + border: InputBorder.none, + hintText: 'Type here...', + ), + ), + ), + Padding( + padding: const EdgeInsets.only( + left: 24, + top: 10, + right: 24, + ), + child: Text( + 'Tell about your business...', + style: TextStyle( + fontFamily: "Manrope", + fontSize: 14, + color: Color(0xff333333), + ), + ), + ), + Padding( + padding: const EdgeInsets.only(left: 24, right: 24, top: 10), + child: TextField( + maxLines: 5, + keyboardType: TextInputType.multiline, + decoration: InputDecoration( + border: InputBorder.none, + hintText: 'Type here...', + ), + ), + ), + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SizedBox( + width: 24, + ), + Text('Industry'), + SizedBox( + width: 100, + ), + Text('Category'), + ], + ), + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Spacer(), + DropdownButton( + value: dropdownvalue, + icon: const Icon(Icons.keyboard_arrow_down), + items: items.map( + (String items) { + return DropdownMenuItem( + value: items, + child: Text(items), + ); + }, + ).toList(), + onChanged: (String? newValue) {}, + ), + Spacer(), + DropdownButton( + items: [ + DropdownMenuItem( + value: "1", + child: Center( + child: Text("one"), + ), + ) + ], + onChanged: (_value) => { + print(_value.toString()), + }, + ), + ], + ), + ], + ), ), ], ), diff --git a/openclosenew/pubspec.lock b/openclosenew/pubspec.lock index 01c5aae..bbb83df 100644 --- a/openclosenew/pubspec.lock +++ b/openclosenew/pubspec.lock @@ -57,6 +57,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.15.0" + cross_file: + dependency: transitive + description: + name: cross_file + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.3" crypto: dependency: transitive description: @@ -118,6 +125,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.0.1" + flutter_plugin_android_lifecycle: + dependency: transitive + description: + name: flutter_plugin_android_lifecycle + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.5" flutter_test: dependency: "direct dev" description: flutter @@ -128,6 +142,13 @@ packages: description: flutter source: sdk version: "0.0.0" + get: + dependency: "direct main" + description: + name: get + url: "https://pub.dartlang.org" + source: hosted + version: "4.6.1" google_fonts: dependency: "direct dev" description: @@ -156,6 +177,41 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "3.1.3" + image_picker: + dependency: "direct main" + description: + name: image_picker + url: "https://pub.dartlang.org" + source: hosted + version: "0.8.5" + image_picker_android: + dependency: transitive + description: + name: image_picker_android + url: "https://pub.dartlang.org" + source: hosted + version: "0.8.4+11" + image_picker_for_web: + dependency: transitive + description: + name: image_picker_for_web + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.6" + image_picker_ios: + dependency: transitive + description: + name: image_picker_ios + url: "https://pub.dartlang.org" + source: hosted + version: "0.8.5" + image_picker_platform_interface: + dependency: transitive + description: + name: image_picker_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "2.4.4" intl_phone_number_input: dependency: "direct main" description: diff --git a/openclosenew/pubspec.yaml b/openclosenew/pubspec.yaml index e0585e9..e16fc72 100644 --- a/openclosenew/pubspec.yaml +++ b/openclosenew/pubspec.yaml @@ -36,6 +36,8 @@ dependencies: cupertino_icons: ^1.0.2 shared_preferences: ^2.0.11 intl_phone_number_input: ^0.7.0+2 + get: ^4.5.1 + image_picker: ^0.8.5 dev_dependencies: