From 83edbd27c4da22bac7e0ce012e58b526d1119041 Mon Sep 17 00:00:00 2001 From: vignesh Date: Wed, 11 May 2022 12:40:14 +0530 Subject: [PATCH] add business screen dropdown button create --- openclosenew/assets/images/img_icon.png | Bin 7592 -> 0 bytes openclosenew/lib/07_addbusiness.dart | 63 +++++++++++++----------- 2 files changed, 33 insertions(+), 30 deletions(-) delete mode 100644 openclosenew/assets/images/img_icon.png diff --git a/openclosenew/assets/images/img_icon.png b/openclosenew/assets/images/img_icon.png deleted file mode 100644 index 7fcfe7c07f5db89d00f68cb7f018e4d85d1ecbf6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7592 zcmV;Z9arLsP)+DwI4`dkUXXd<)MXfLraQ8J%NHmO5}?pQX{B6U()z%OxFL*Ue{~(oO|xq`M&?3 zbmp8nU-z7I_y4Z7*V=oZO^%eFm6esrn>TMxe*XFAm?k!F-n>UvPhi>4Cw1RVn>I}* zolEv@`u*l*Ht(0QZhm!jbwQTrux(^yq`70qj;14}W|JeO;L4RN6C#?aTeogaL7-l& zQ=J5vH4r=m4q=PHKWa1@bMj*{w{z#tc}EI|0xkfERYW=sk%}N5>?Bm#wr-MRHf*#1 zCn2A;VHtDz;b<+}DdC!$vVBgD`-NQ3EJa-m6mSlB!5)%=zE2ALp*XQxfy%zoItaCs zAhX7b86wA&Aa1zd5cOHH)(~{lkxZe0Gh%6JX<7>NK`H3d^6!-0W-X~sMGLi8te|y@ z0fL^Deb0`Kjmioc&}}MMspD>Nf$M}?XK|7QwnVFz74C3YPaPH@Xc22W3q1odkB^U^a-?r4;653 zE^*eV%MI%sh$ecAT3ZUYI3VI1 zH*QeKZ5aBJDRtcEoDnYF`_1sCR=f2>4I!Nod+HrtXlNceNlK+nnOCEVB1Z?ZM zj4Ia?M6DrY587FukR0-HS95Azf_;<67tr4p|3kE}x)g3b(e#t%k-b}epw8B~mL=Jz zh1BY@o;zg3xYZ}TTV1;zP_+}Vx4QqR(PgdY(&`Q$)~)v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I@4lXVzFFi9!Udk!ck%Bh#d6pvWEfUcEHE2-kkW&)X~cV=Xz_y5gnwy? zNtp>O?}04(_Vz=m@;4MQDI;YSFDP9CHWV=i17Mz*6oF<)$|_z^y0>$qPAoaK{XW9S zJTWN*&GQD)=2D3ll-9J_6cbx)kvs_-X_O^k6-TKRK@pR@sgig>>0D?F9vpIQvN&g5 z8bY!Fz2r=lZMF<~-cD4;oM|s6EOVqwk~Z2I-;;Zh#&fbbL6@2&p`B&aWyYZEqoboI zT!pDcNw+RF{%4e$galD$wDvn(RjX^Mm8p_c(=nOB8arBJ0%C@3s!WQg8){d&(HY{_ zty^bkjfWe3KapBp1gh}v>Z(PVJ5k9XRubq8p#d)Zk1z1*)vIj5HAHA97~3!dWuk84 z1-14s!@4oMC)OL={m+BmLr3cbl2V%^4a~ zLGDMFqSA-95D6mm6*5$>#8YsWn6hKQl9 z3@$D%9+BB|6mqrDw*X3}A^IQDWw-W1u~Tjc8Tx1rg!Sqv(gi&R`4h=C*Q@HD4iEIOeECmLsrzu^BJTfdY z1WnQ>bdx=^BHojEzBIc^P{19K9P+djpd*@o0Kpe!D;>($N1G>mm-2o^%c6uQS=v=}P*v}~K9we24YI3>iz#=D#jLCjJxr>$j% zm{rgab6o|kLN#rYTig5y7&9X1a};fQP{0`hH`}dQgZkAh~M1n+zAIKMBJ5fPr3^$QRvma$%bOqx4(>}WbtYJLmv{|C$YuYGI)0000< KMNUMnLSTZ~z;~?x diff --git a/openclosenew/lib/07_addbusiness.dart b/openclosenew/lib/07_addbusiness.dart index e88416b..d0f6fe0 100644 --- a/openclosenew/lib/07_addbusiness.dart +++ b/openclosenew/lib/07_addbusiness.dart @@ -1,20 +1,16 @@ import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -class addbusiness extends StatelessWidget { - // 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', - ]; +class addbusiness extends StatefulWidget { addbusiness({Key? key}) : super(key: key); + @override + State createState() => _addbusinessState(); +} + +class _addbusinessState extends State { + late String valuChoose; + List ListItem = ["item 1", "item 2", "item 3", "item 4", "item 5"]; @override Widget build(BuildContext context) { return Scaffold( @@ -48,7 +44,6 @@ class addbusiness extends StatelessWidget { ], ), ), - Spacer(), Container( child: Column( children: [ @@ -72,10 +67,9 @@ class addbusiness extends StatelessWidget { shape: BoxShape.circle, color: Colors.black, ), - margin: EdgeInsets.all(24), - padding: EdgeInsets.all(45), + margin: EdgeInsets.all(15), + padding: EdgeInsets.all(30), ), - Spacer(), Container( child: Column( crossAxisAlignment: CrossAxisAlignment.start, @@ -155,14 +149,15 @@ class addbusiness extends StatelessWidget { ), ), Row( + mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ SizedBox( - width: 24, + width: 28, ), Text('Industry'), SizedBox( - width: 100, + width: 120, ), Text('Category'), ], @@ -170,19 +165,27 @@ class addbusiness extends StatelessWidget { Row( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Spacer(), + SizedBox( + width: 28, + ), 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) {}, + hint: Text( + 'Food', + style: TextStyle(color: Color(0xff3D3D3D)), + ), + iconSize: 14, + icon: Icon(Icons.keyboard_arrow_down, size: 24), + items: [ + DropdownMenuItem( + value: "1", + child: Center( + child: Text("one"), + ), + ) + ], + onChanged: (_value) => { + print(_value.toString()), + }, ), Spacer(), DropdownButton(