From e47bcdc39b975842cc09854837ed9b3e11d2bf62 Mon Sep 17 00:00:00 2001 From: vignesh Date: Mon, 30 May 2022 12:26:59 +0530 Subject: [PATCH] all design completed --- openclosenew/assets/images/dollor.png | Bin 0 -> 335 bytes .../lib/17-BusinessProfileFormSuccess.dart | 3 +- openclosenew/lib/19-AddProductFrom.dart | 276 ++++++++++++++++++ openclosenew/pubspec.lock | 2 +- openclosenew/pubspec.yaml | 1 + 5 files changed, 280 insertions(+), 2 deletions(-) create mode 100644 openclosenew/assets/images/dollor.png create mode 100644 openclosenew/lib/19-AddProductFrom.dart diff --git a/openclosenew/assets/images/dollor.png b/openclosenew/assets/images/dollor.png new file mode 100644 index 0000000000000000000000000000000000000000..10eb32a664fd2e84708a3f074670b1235f4a2460 GIT binary patch literal 335 zcmeAS@N?(olHy`uVBq!ia0vp^oIuRS!3HG%PBB{n5-9M9EM{O3m;=I$YG(0r%1aer?9eo`c7&i8E|4C#8@}GFRIEGX()=oIc+hicprg`F^w6KHu1Y<@e z;T6&w8kHN=*Y_+?UvJSkL*S8bxCZwMbG?Ro&)EW=nV%|ZpT4gCAHOJ()luMkt-tBf zs1N)M;+d-aoQiw43CO$ng>0|A@6V{7A)u+K_?Y*Fk4vF*)cGtUp5*H$yD}FY&#-Eig26 z{l^UFyjQ!<<=&2awX3dB=6Uxo!$y_}h8C5gB~!9`HvVRrq+n&3W6Y^F|G;M(@x|K> cCjMu*)fCV0X1?+tpnn-WUHx3vIVCg!03>jE)Bpeg literal 0 HcmV?d00001 diff --git a/openclosenew/lib/17-BusinessProfileFormSuccess.dart b/openclosenew/lib/17-BusinessProfileFormSuccess.dart index f1f27dc..7d2987a 100644 --- a/openclosenew/lib/17-BusinessProfileFormSuccess.dart +++ b/openclosenew/lib/17-BusinessProfileFormSuccess.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import '15_addbusinessdetails.dart'; +import '19-AddProductFrom.dart'; class profileformsuccess extends StatelessWidget { const profileformsuccess({Key? key}) : super(key: key); @@ -47,7 +48,7 @@ class profileformsuccess extends StatelessWidget { color: Color(0xFF09CD99), onPressed: () { Navigator.push(context, - MaterialPageRoute(builder: (_) => addbusinessdetails())); + MaterialPageRoute(builder: (_) => addproductfrom())); }, child: Text( 'Go to Business', diff --git a/openclosenew/lib/19-AddProductFrom.dart b/openclosenew/lib/19-AddProductFrom.dart new file mode 100644 index 0000000..c06b3fb --- /dev/null +++ b/openclosenew/lib/19-AddProductFrom.dart @@ -0,0 +1,276 @@ +import 'package:dotted_border/dotted_border.dart'; +import 'package:flutter/material.dart'; + +class addproductfrom extends StatefulWidget { + const addproductfrom({Key? key}) : super(key: key); + + @override + State createState() => _addproductfromState(); +} + +class _addproductfromState extends State { + List> listDrop = []; + String? selected = null; + void loadData() { + listDrop = []; + listDrop.add(new DropdownMenuItem( + child: new Text('Non-Veg'), + value: 'val-1', + )); + listDrop.add(new DropdownMenuItem( + child: new Text('Veg'), + value: 'val-2', + )); + } + + @override + Widget build(BuildContext context) { + loadData(); + return Scaffold( + body: SingleChildScrollView( + child: SafeArea( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: const EdgeInsets.only(left: 10), + 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(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(() {}); + }, + ), + ), + ), + ), + ), + 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: Color(0xff333333), + ), + ), + ), + 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: Color(0xff333333), + ), + ), + ), + InkWell( + onTap: () { + showModalBottomSheet( + context: context, + builder: (BuildContext context) { + return Container( + height: 200, + color: Colors.white, + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + 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, + ), + ), + ), + ), + ], + ), + ), + ), + ); + } +} diff --git a/openclosenew/pubspec.lock b/openclosenew/pubspec.lock index 24a9538..ddd83e6 100644 --- a/openclosenew/pubspec.lock +++ b/openclosenew/pubspec.lock @@ -197,7 +197,7 @@ packages: name: image_picker url: "https://pub.dartlang.org" source: hosted - version: "0.8.5+1" + version: "0.8.5+3" image_picker_android: dependency: transitive description: diff --git a/openclosenew/pubspec.yaml b/openclosenew/pubspec.yaml index 064b85e..180a964 100644 --- a/openclosenew/pubspec.yaml +++ b/openclosenew/pubspec.yaml @@ -45,6 +45,7 @@ dependencies: + dev_dependencies: flutter_test: sdk: flutter