BusinessAppFlutter/openclosenew/lib/07_addbusiness.dart

214 lines
6.7 KiB
Dart
Raw Normal View History

import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class addbusiness extends StatefulWidget {
addbusiness({Key? key}) : super(key: key);
@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"];
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Column(
children: [
SizedBox(
height: 50,
),
Padding(
padding: const EdgeInsets.only(left: 15, right: 24),
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',
),
)
],
),
),
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'),
),
],
),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.black,
),
margin: EdgeInsets.all(15),
padding: EdgeInsets.all(30),
),
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(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(
width: 28,
),
Text('Industry'),
SizedBox(
width: 120,
),
Text('Category'),
],
),
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(
width: 28,
),
DropdownButton(
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()),
},
),
Spacer(),
DropdownButton(
items: [
DropdownMenuItem<String>(
value: "1",
child: Center(
child: Text("one"),
),
)
],
onChanged: (_value) => {
print(_value.toString()),
},
),
],
),
],
),
),
],
),
);
}
}