BusinessAppFlutter/openclosenew/lib/15_addbusinessdetails.dart

122 lines
4.3 KiB
Dart

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> {
final List<String> items = <String>['All Days', 'Specific days & timing'];
String selectedItem = 'All Days';
@override
Widget build(BuildContext context) {
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,
fontSize: 14,
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(
fontFamily: "Manrope",
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 14,
color: Color(0xFF333333),
),
),
Row(
children: [
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<Widget>((String item) {
return Text(item);
}).toList();
},
items: items.map((String item) {
return DropdownMenuItem<String>(
value: item,
child: Text('$item'),
);
}).toList(),
),
),
),
),
),
],
),
],
),
),
],
),
),
);
}
}