From e9176cf63dbbc6e6f8873d0b2b51a5674ca44029 Mon Sep 17 00:00:00 2001 From: vignesh Date: Fri, 27 May 2022 23:03:29 +0530 Subject: [PATCH] Business Profile Form half design completed --- .../dependencies-accessors.lock | Bin 0 -> 17 bytes .../dependencies-accessors/gc.properties | 0 .../.gradle/7.0.2/fileChanges/last-build.bin | Bin 0 -> 1 bytes .../.gradle/7.0.2/fileHashes/fileHashes.lock | Bin 0 -> 17 bytes openclosenew/.gradle/7.0.2/gc.properties | 0 openclosenew/.gradle/checksums/checksums.lock | Bin 0 -> 17 bytes openclosenew/.gradle/vcs-1/gc.properties | 0 openclosenew/android/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- openclosenew/lib/11_busiesshome.dart | 21 ++++---- openclosenew/lib/15_addbusinessdetails.dart | 49 +++++++++++++----- 11 files changed, 50 insertions(+), 24 deletions(-) create mode 100644 openclosenew/.gradle/7.0.2/dependencies-accessors/dependencies-accessors.lock create mode 100644 openclosenew/.gradle/7.0.2/dependencies-accessors/gc.properties create mode 100644 openclosenew/.gradle/7.0.2/fileChanges/last-build.bin create mode 100644 openclosenew/.gradle/7.0.2/fileHashes/fileHashes.lock create mode 100644 openclosenew/.gradle/7.0.2/gc.properties create mode 100644 openclosenew/.gradle/checksums/checksums.lock create mode 100644 openclosenew/.gradle/vcs-1/gc.properties diff --git a/openclosenew/.gradle/7.0.2/dependencies-accessors/dependencies-accessors.lock b/openclosenew/.gradle/7.0.2/dependencies-accessors/dependencies-accessors.lock new file mode 100644 index 0000000000000000000000000000000000000000..fdf56a4b295eb9f512db1aa2f7c71f532029fa86 GIT binary patch literal 17 TcmZSP6#4jZqo3C<1}FdkFn { ), ), ), - Spacer(), Padding( - padding: const EdgeInsets.only(right: 5, top: 10, bottom: 15), + padding: const EdgeInsets.only(right: 15, top: 10, bottom: 15), child: TextButton.icon( icon: Icon( Icons.add, @@ -325,7 +323,7 @@ class _businesshomeState extends State { ], ), Container( - height: 380, + height: 400, child: ListView( scrollDirection: Axis.vertical, children: [ @@ -337,6 +335,8 @@ class _businesshomeState extends State { MaterialPageRoute(builder: (_) => businessdetail())); }, child: Container( + height: 200, + width: double.infinity, margin: EdgeInsets.only(right: 15), decoration: BoxDecoration( borderRadius: BorderRadius.all(Radius.circular(5)), @@ -350,6 +350,7 @@ class _businesshomeState extends State { children: [ Image.asset( 'assets/images/bg.png', + height: 250, ), Column( crossAxisAlignment: CrossAxisAlignment.start, @@ -397,7 +398,7 @@ class _businesshomeState extends State { ), ), SizedBox( - width: 5, + width: 35, ), FlutterSwitch( width: 105, @@ -468,7 +469,8 @@ class _businesshomeState extends State { MaterialPageRoute(builder: (_) => businessdetail())); }, child: Container( - margin: EdgeInsets.only(right: 15), + height: 200, + margin: EdgeInsets.only(right: 15, top: 10), decoration: BoxDecoration( borderRadius: BorderRadius.all(Radius.circular(5)), ), @@ -529,7 +531,7 @@ class _businesshomeState extends State { ), ), SizedBox( - width: 5, + width: 35, ), FlutterSwitch( width: 105, @@ -600,7 +602,8 @@ class _businesshomeState extends State { MaterialPageRoute(builder: (_) => businessdetail())); }, child: Container( - margin: EdgeInsets.only(right: 15), + height: 200, + margin: EdgeInsets.only(right: 15, top: 10), decoration: BoxDecoration( borderRadius: BorderRadius.all(Radius.circular(5)), ), @@ -661,7 +664,7 @@ class _businesshomeState extends State { ), ), SizedBox( - width: 5, + width: 35, ), FlutterSwitch( width: 105, diff --git a/openclosenew/lib/15_addbusinessdetails.dart b/openclosenew/lib/15_addbusinessdetails.dart index c8ec3cd..7202162 100644 --- a/openclosenew/lib/15_addbusinessdetails.dart +++ b/openclosenew/lib/15_addbusinessdetails.dart @@ -8,6 +8,9 @@ class addbusinessdetails extends StatefulWidget { } class _addbusinessdetailsState extends State { + final List items = ['All Days', 'Specific days & timing']; + String selectedItem = 'All Days'; + @override Widget build(BuildContext context) { return Scaffold( @@ -68,23 +71,43 @@ class _addbusinessdetailsState extends State { Text( "Your working days & hours", style: TextStyle( - fontFamily: "Manrope", - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w300, - fontSize: 14, - color: Color(0xFF333333)), + fontFamily: "Manrope", + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w300, + fontSize: 14, + color: Color(0xFF333333), + ), ), Row( children: [ - DropdownMenuItem( - child: Text("All Days"), + Expanded( + child: Container( + padding: EdgeInsets.all(10), + child: DropdownButtonHideUnderline( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: DropdownButton( + icon: Icon(Icons.keyboard_arrow_down_rounded), + iconSize: 30, + value: selectedItem, + onChanged: (String? string) => + setState(() => selectedItem = string!), + selectedItemBuilder: (BuildContext context) { + return items.map((String item) { + return Text(item); + }).toList(); + }, + items: items.map((String item) { + return DropdownMenuItem( + value: item, + child: Text('$item'), + ); + }).toList(), + ), + ), + ), + ), ), - Spacer(), - Icon( - Icons.keyboard_arrow_down_rounded, - color: Color(0xFF5C5C5C), - size: 35, - ) ], ), ],