2022-05-09 06:54:36 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2022-05-10 06:55:08 +00:00
|
|
|
import 'package:flutter/widgets.dart';
|
2022-05-09 06:54:36 +00:00
|
|
|
|
2022-05-11 07:10:14 +00:00
|
|
|
class addbusiness extends StatefulWidget {
|
2022-05-10 06:55:08 +00:00
|
|
|
addbusiness({Key? key}) : super(key: key);
|
2022-05-09 06:54:36 +00:00
|
|
|
|
2022-05-11 07:10:14 +00:00
|
|
|
@override
|
|
|
|
State<addbusiness> createState() => _addbusinessState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _addbusinessState extends State<addbusiness> {
|
|
|
|
late String valuChoose;
|
|
|
|
List ListItem = ["item 1", "item 2", "item 3", "item 4", "item 5"];
|
2022-05-09 06:54:36 +00:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
2022-05-10 06:55:08 +00:00
|
|
|
backgroundColor: Colors.white,
|
2022-05-09 06:54:36 +00:00
|
|
|
body: Column(
|
|
|
|
children: [
|
|
|
|
SizedBox(
|
|
|
|
height: 50,
|
|
|
|
),
|
|
|
|
Padding(
|
2022-05-10 06:55:08 +00:00
|
|
|
padding: const EdgeInsets.only(left: 15, right: 24),
|
2022-05-09 06:54:36 +00:00
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
IconButton(
|
|
|
|
icon: Icon(Icons.arrow_back, size: 24),
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
width: 20,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'Add Business',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 15,
|
|
|
|
color: Color(0xff3D3D3D),
|
|
|
|
fontFamily: 'assets/fonts/Manrope-Medium.ttf',
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
2022-05-10 06:55:08 +00:00
|
|
|
Container(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
'assets/images/gallery-icon.png',
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
height: 10,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'Uploading Logo',
|
|
|
|
style: TextStyle(
|
|
|
|
color: Colors.grey,
|
|
|
|
fontSize: 14,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontFamily: 'Manrope'),
|
2022-05-09 06:54:36 +00:00
|
|
|
),
|
2022-05-10 06:55:08 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
color: Colors.black,
|
|
|
|
),
|
2022-05-11 07:10:14 +00:00
|
|
|
margin: EdgeInsets.all(15),
|
|
|
|
padding: EdgeInsets.all(30),
|
2022-05-10 06:55:08 +00:00
|
|
|
),
|
|
|
|
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),
|
2022-05-09 06:54:36 +00:00
|
|
|
),
|
2022-05-10 06:55:08 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
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),
|
2022-05-09 06:54:36 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2022-05-10 06:55:08 +00:00
|
|
|
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(
|
2022-05-11 07:10:14 +00:00
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
2022-05-10 06:55:08 +00:00
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
SizedBox(
|
2022-05-11 07:10:14 +00:00
|
|
|
width: 28,
|
2022-05-10 06:55:08 +00:00
|
|
|
),
|
|
|
|
Text('Industry'),
|
|
|
|
SizedBox(
|
2022-05-11 07:10:14 +00:00
|
|
|
width: 120,
|
2022-05-10 06:55:08 +00:00
|
|
|
),
|
|
|
|
Text('Category'),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
2022-05-11 07:10:14 +00:00
|
|
|
SizedBox(
|
|
|
|
width: 28,
|
|
|
|
),
|
2022-05-10 06:55:08 +00:00
|
|
|
DropdownButton(
|
2022-05-11 07:10:14 +00:00
|
|
|
hint: Text(
|
|
|
|
'Food',
|
|
|
|
style: TextStyle(color: Color(0xff3D3D3D)),
|
|
|
|
),
|
|
|
|
iconSize: 14,
|
|
|
|
icon: Icon(Icons.keyboard_arrow_down, size: 24),
|
|
|
|
items: [
|
|
|
|
DropdownMenuItem<String>(
|
|
|
|
value: "1",
|
|
|
|
child: Center(
|
|
|
|
child: Text("one"),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
onChanged: (_value) => {
|
|
|
|
print(_value.toString()),
|
|
|
|
},
|
2022-05-10 06:55:08 +00:00
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
DropdownButton(
|
|
|
|
items: [
|
|
|
|
DropdownMenuItem<String>(
|
|
|
|
value: "1",
|
|
|
|
child: Center(
|
|
|
|
child: Text("one"),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
onChanged: (_value) => {
|
|
|
|
print(_value.toString()),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
2022-05-09 06:54:36 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|