BusinessAppFlutter/openclosenew/lib/14_businessdetailsempty.dart

545 lines
24 KiB
Dart
Raw Normal View History

import 'package:dotted_border/dotted_border.dart';
2022-05-25 08:51:11 +00:00
import 'package:flutter/material.dart';
import 'package:flutter_switch/flutter_switch.dart';
2022-05-27 06:57:43 +00:00
import 'package:openclosenew/15_addbusinessdetails.dart';
2022-05-31 13:48:18 +00:00
import 'package:openclosenew/colors.dart';
2022-05-25 08:51:11 +00:00
import 'FontFamily.dart';
import 'fontsize.dart';
2022-05-25 08:51:11 +00:00
class businessdetailsempty extends StatefulWidget {
const businessdetailsempty({Key? key}) : super(key: key);
@override
State<businessdetailsempty> createState() => _businessdetailsemptyState();
}
bool status = true;
class _businessdetailsemptyState extends State<businessdetailsempty> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: SingleChildScrollView(
child: Column(
children: [
Container(
height: 400,
child: Stack(
children: [
Container(
height: 250,
decoration: BoxDecoration(
image: const DecorationImage(
image: AssetImage('assets/images/bg.png'),
fit: BoxFit.cover,
),
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(20),
bottomRight: Radius.circular(20),
),
),
),
if (status == false)
Container(
height: 250,
decoration: BoxDecoration(
color: Colors.grey.withOpacity(0.5),
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(20),
bottomRight: Radius.circular(20),
),
),
),
Padding(
padding:
EdgeInsets.only(left: 10, right: 10, bottom: 300),
child: Row(
children: [
FloatingActionButton(
child: Icon(
Icons.arrow_back,
size: 24,
color: Color(0xFF3D3D3D),
),
mini: true,
backgroundColor: Colors.white,
onPressed: () {
Navigator.pop(context);
},
),
Spacer(),
FlutterSwitch(
width: 107,
height: 50,
valueFontSize: SubText,
toggleSize: 20,
value: status,
borderRadius: 30.0,
padding: 5,
showOnOff: true,
onToggle: (val) {
setState(() {
status = val;
});
},
activeText: "OPEN",
activeSwitchBorder:
Border.all(color: Colors.white, width: 10),
inactiveSwitchBorder:
Border.all(color: Colors.white, width: 10),
activeTextColor: Colors.white,
activeTextFontWeight: FontWeight.w600,
activeColor: Color(0xFF09CD99),
inactiveText: "CLOSED",
inactiveTextColor: Colors.white,
inactiveTextFontWeight: FontWeight.w600,
inactiveColor: Color(0xFFFF4B4C),
),
],
2022-05-25 08:51:11 +00:00
),
),
Align(
alignment: Alignment.center,
child: Container(
margin: EdgeInsets.only(right: 20, left: 20, top: 150),
padding: EdgeInsets.all(12),
height: 270,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.all(
Radius.circular(10),
),
boxShadow: [
BoxShadow(
color: Colors.grey.shade500,
offset: Offset(4.0, 4.0),
blurRadius: 10.0,
spreadRadius: 1.0,
),
],
),
foregroundDecoration: BoxDecoration(
color: status ? null : Colors.white,
backgroundBlendMode:
status ? null : BlendMode.saturation,
),
child: Column(
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Padding(
padding:
const EdgeInsets.only(left: 5, top: 5),
child: InkWell(
onTap: () {
Navigator.pop(context);
},
child: Column(
children: [
Image.asset(
'assets/images/insert_logo.png',
width: 30,
height: 30,
2022-05-31 13:48:18 +00:00
color: primaryColor,
),
Text(
"LOGO",
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
letterSpacing: 0.25,
2022-05-31 13:48:18 +00:00
color: Gray,
),
),
],
),
),
),
Padding(
padding:
const EdgeInsets.only(left: 15, top: 10),
child: Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: [
RichText(
text: TextSpan(
text: "Barbeque Nation ",
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
fontSize: TitleText,
2022-05-31 13:48:18 +00:00
color: DarkGray,
),
),
),
RichText(
text: TextSpan(
children: [
TextSpan(
text: "0.0 ",
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
fontSize: HeadText,
color: Color(0xFFFFBE3F),
),
),
WidgetSpan(
child: Icon(
Icons.star,
color: Color(0xFFFFBE3F),
size: 15,
),
),
],
),
),
],
),
),
Spacer(),
IconButton(
icon: Image.asset(
'assets/images/edit_pen.png',
color: Colors.black,
),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) =>
businessdetailsempty()),
);
},
),
],
),
Align(
alignment: Alignment.topLeft,
child: Padding(
padding: const EdgeInsets.only(left: 5),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Padding(
padding:
const EdgeInsets.only(top: 10),
child: RichText(
text: TextSpan(
children: [
WidgetSpan(
child: Image.asset(
'assets/images/call_icon.png',
width: 25,
height: 25,
),
),
TextSpan(
text:
" +91 98651 76796, +91 76786 85869",
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: SubText,
2022-05-31 13:48:18 +00:00
color: Gray,
),
),
],
),
),
),
],
),
Padding(
padding: const EdgeInsets.only(top: 10),
child: RichText(
text: TextSpan(
children: [
WidgetSpan(
child: Image.asset(
'assets/images/loc_logo.png',
width: 25,
height: 25,
),
),
TextSpan(
text:
" 112, Avinashi Road, Peelamedu, Coimbatore...",
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: SubText,
2022-05-31 13:48:18 +00:00
color: Gray,
),
),
],
),
),
),
SizedBox(
height: 25,
),
InkWell(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) =>
addbusinessdetails(),
),
);
},
child: DottedBorder(
dashPattern: [5, 5, 5, 5],
padding: EdgeInsets.all(15),
2022-05-31 13:48:18 +00:00
color: primaryColor,
child: Row(
children: [
Text(
'This Business Profile looks incomplete',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: SubText,
2022-05-31 13:48:18 +00:00
color: primaryColor,
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
2022-05-31 13:48:18 +00:00
color: primaryColor,
size: 20,
),
],
),
),
),
],
),
),
),
],
),
),
),
],
),
2022-05-25 08:51:11 +00:00
),
SizedBox(
height: 35,
),
Padding(
padding: const EdgeInsets.only(left: 20, right: 15),
child: Column(
children: [
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
2022-05-27 06:57:43 +00:00
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your food items',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: HeadText,
2022-05-31 13:48:18 +00:00
color: primaryColor,
),
2022-05-27 06:57:43 +00:00
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
2022-05-31 13:48:18 +00:00
color: primaryColor,
size: 20,
)
],
),
2022-05-27 06:57:43 +00:00
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
2022-05-27 06:57:43 +00:00
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your shop photos',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: HeadText,
2022-05-31 13:48:18 +00:00
color: primaryColor,
),
2022-05-27 06:57:43 +00:00
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
2022-05-31 13:48:18 +00:00
color: primaryColor,
size: 20,
)
],
),
2022-05-27 06:57:43 +00:00
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
2022-05-27 06:57:43 +00:00
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your business services',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: HeadText,
2022-05-31 13:48:18 +00:00
color: primaryColor,
),
2022-05-27 06:57:43 +00:00
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
2022-05-31 13:48:18 +00:00
color: primaryColor,
size: 20,
)
],
),
2022-05-27 06:57:43 +00:00
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
2022-05-27 06:57:43 +00:00
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your business offers',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: HeadText,
2022-05-31 13:48:18 +00:00
color: primaryColor,
),
2022-05-27 06:57:43 +00:00
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
2022-05-31 13:48:18 +00:00
color: primaryColor,
size: 20,
)
],
),
2022-05-27 06:57:43 +00:00
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
2022-05-27 06:57:43 +00:00
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your business coupons',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: HeadText,
2022-05-31 13:48:18 +00:00
color: primaryColor,
),
2022-05-27 06:57:43 +00:00
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
2022-05-31 13:48:18 +00:00
color: primaryColor,
size: 20,
)
],
),
2022-05-27 06:57:43 +00:00
),
),
],
),
2022-05-27 06:57:43 +00:00
),
],
),
2022-05-25 08:51:11 +00:00
),
),
);
}
}