2022-05-27 06:57:43 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class addbusinessdetails extends StatefulWidget {
|
|
|
|
const addbusinessdetails({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
State<addbusinessdetails> createState() => _addbusinessdetailsState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _addbusinessdetailsState extends State<addbusinessdetails> {
|
2022-05-27 17:33:29 +00:00
|
|
|
final List<String> items = <String>['All Days', 'Specific days & timing'];
|
|
|
|
String selectedItem = 'All Days';
|
2022-05-28 07:00:42 +00:00
|
|
|
bool isVisibile = true;
|
|
|
|
List<DropdownMenuItem<String>> listDrop = [];
|
|
|
|
String? selected = null;
|
|
|
|
void loadData() {
|
|
|
|
listDrop = [];
|
|
|
|
listDrop.add(new DropdownMenuItem(
|
|
|
|
child: new Text('Item No.1'),
|
|
|
|
value: 'val-1',
|
|
|
|
));
|
|
|
|
listDrop.add(new DropdownMenuItem(
|
|
|
|
child: new Text('Item No.2'),
|
|
|
|
value: 'val-2',
|
|
|
|
));
|
|
|
|
listDrop.add(new DropdownMenuItem(
|
|
|
|
child: new Text('Item No.3'),
|
|
|
|
value: 'val-3',
|
|
|
|
));
|
|
|
|
}
|
2022-05-27 17:33:29 +00:00
|
|
|
|
2022-05-27 06:57:43 +00:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2022-05-28 07:00:42 +00:00
|
|
|
loadData();
|
2022-05-27 06:57:43 +00:00
|
|
|
return Scaffold(
|
|
|
|
body: SafeArea(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
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 Detail',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 15,
|
|
|
|
color: Color(0xff3D3D3D),
|
|
|
|
fontFamily: 'assets/fonts/Manrope-Medium.ttf',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(top: 30, left: 30, right: 20),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
"Website",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: "Manrope",
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w300,
|
2022-05-28 07:00:42 +00:00
|
|
|
fontSize: 15,
|
2022-05-27 06:57:43 +00:00
|
|
|
color: Color(0xFF333333)),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
height: 10,
|
|
|
|
),
|
|
|
|
TextField(
|
|
|
|
decoration: InputDecoration(
|
|
|
|
border: InputBorder.none,
|
|
|
|
hintText: "Add if you have...",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
height: 15,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
"Your working days & hours",
|
|
|
|
style: TextStyle(
|
2022-05-27 17:33:29 +00:00
|
|
|
fontFamily: "Manrope",
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w300,
|
2022-05-28 07:00:42 +00:00
|
|
|
fontSize: 15,
|
2022-05-27 17:33:29 +00:00
|
|
|
color: Color(0xFF333333),
|
|
|
|
),
|
2022-05-27 06:57:43 +00:00
|
|
|
),
|
2022-05-28 07:00:42 +00:00
|
|
|
SizedBox(
|
|
|
|
height: 15,
|
|
|
|
),
|
2022-05-27 06:57:43 +00:00
|
|
|
Row(
|
|
|
|
children: [
|
2022-05-27 17:33:29 +00:00
|
|
|
Expanded(
|
2022-05-28 07:00:42 +00:00
|
|
|
child: InputDecorator(
|
|
|
|
decoration: InputDecoration(
|
|
|
|
contentPadding: EdgeInsets.only(
|
|
|
|
left: 10, top: 1, bottom: 1, right: 5),
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topLeft: Radius.circular(5),
|
|
|
|
bottomLeft: Radius.circular(5),
|
2022-05-27 17:33:29 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2022-05-28 07:00:42 +00:00
|
|
|
child: DropdownButtonHideUnderline(
|
|
|
|
child: new DropdownButton(
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
value: selected,
|
|
|
|
items: listDrop,
|
|
|
|
icon: Icon(Icons.keyboard_arrow_down, size: 24),
|
|
|
|
hint: new Text('Choose...'),
|
|
|
|
onChanged: (value) {
|
|
|
|
selected = value as String?;
|
|
|
|
setState(() => isVisibile = !isVisibile);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
2022-05-27 17:33:29 +00:00
|
|
|
),
|
2022-05-27 06:57:43 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
2022-05-28 07:00:42 +00:00
|
|
|
Visibility(
|
|
|
|
visible: isVisibile,
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
"From",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: "Manrope",
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w300,
|
|
|
|
fontSize: 15,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
width: 120,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
"To",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: "Manrope",
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w300,
|
|
|
|
fontSize: 15,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
2022-05-27 06:57:43 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|