2022-05-14 20:28:31 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2022-05-15 19:40:15 +00:00
|
|
|
import 'package:flutter_switch/flutter_switch.dart';
|
2022-05-16 19:05:03 +00:00
|
|
|
import '07_addbusiness.dart';
|
2022-06-01 16:36:23 +00:00
|
|
|
import 'FontFamily.dart';
|
2022-05-17 07:00:55 +00:00
|
|
|
import 'businessdetail.dart';
|
2022-05-31 13:48:18 +00:00
|
|
|
import 'colors.dart';
|
2022-06-01 16:36:23 +00:00
|
|
|
import 'fontsize.dart';
|
2022-05-16 19:05:03 +00:00
|
|
|
|
2022-05-14 20:28:31 +00:00
|
|
|
class businesshome extends StatefulWidget {
|
|
|
|
const businesshome({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
State<businesshome> createState() => _businesshomeState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _businesshomeState extends State<businesshome> {
|
2022-05-17 17:58:13 +00:00
|
|
|
bool status = true;
|
|
|
|
bool status1 = true;
|
|
|
|
bool status2 = true;
|
2022-05-15 19:40:15 +00:00
|
|
|
|
2022-05-14 20:28:31 +00:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: Colors.white,
|
2022-06-04 06:42:50 +00:00
|
|
|
body: Column(
|
|
|
|
children: [
|
|
|
|
SafeArea(
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
height: 50,
|
|
|
|
width: 50,
|
|
|
|
margin: EdgeInsets.all(20),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(50),
|
|
|
|
color: Colors.grey,
|
2022-05-30 15:30:50 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'Hi, Sudharsan',
|
|
|
|
style: TextStyle(
|
|
|
|
color: DarkGray,
|
|
|
|
fontSize: HeadText,
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w600,
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'Mon, 02 May 2022',
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: SubText,
|
|
|
|
color: Gray,
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
IconButton(
|
|
|
|
padding: EdgeInsets.only(right: 15),
|
|
|
|
icon: Image.asset('assets/images/bell.png'),
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
2022-05-30 15:30:50 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
height: 20,
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
height: 100,
|
|
|
|
child: ListView(
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(left: 18),
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {},
|
|
|
|
child: Container(
|
|
|
|
width: 360,
|
|
|
|
margin: EdgeInsets.only(right: 10),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
image: const DecorationImage(
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
image: AssetImage('assets/images/status.png'),
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(10),
|
|
|
|
),
|
|
|
|
gradient: LinearGradient(
|
|
|
|
colors: [
|
|
|
|
Color(0xFF09CD99),
|
|
|
|
Color(0xFF09B5CD),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.all(14),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
"Today",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: HeadText,
|
|
|
|
color: Colors.white,
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
Text(
|
|
|
|
"42",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: TitleText,
|
|
|
|
color: Colors.white,
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
Text(
|
|
|
|
"Visitors viewed Barbeque Nation",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: SubText,
|
|
|
|
color: Colors.white,
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
],
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2022-05-15 19:40:15 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(left: 18),
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {},
|
|
|
|
child: Container(
|
|
|
|
width: 360,
|
|
|
|
margin: EdgeInsets.only(right: 10),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
image: const DecorationImage(
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
image: AssetImage('assets/images/status.png'),
|
2022-05-15 19:40:15 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(10),
|
|
|
|
),
|
|
|
|
gradient: LinearGradient(
|
|
|
|
colors: [
|
|
|
|
Color(0xFF09CD99),
|
|
|
|
Color(0xFF09B5CD),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.all(14),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
"Today",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: HeadText,
|
|
|
|
color: Colors.white,
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
Text(
|
|
|
|
"42",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: TitleText,
|
|
|
|
color: Colors.white,
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
Text(
|
|
|
|
"Visitors viewed Barbeque Nation",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: SubText,
|
|
|
|
color: Colors.white,
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
],
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2022-05-15 19:40:15 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(left: 18),
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {},
|
|
|
|
child: Container(
|
|
|
|
width: 360,
|
|
|
|
margin: EdgeInsets.only(right: 10),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
image: const DecorationImage(
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
image: AssetImage('assets/images/status.png'),
|
2022-05-15 19:40:15 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(10),
|
|
|
|
),
|
|
|
|
gradient: LinearGradient(
|
|
|
|
colors: [
|
|
|
|
Color(0xFF09CD99),
|
|
|
|
Color(0xFF09B5CD),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.all(14),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
"Today",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: HeadText,
|
|
|
|
color: Colors.white,
|
2022-05-15 19:40:15 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
Text(
|
|
|
|
"42",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: TitleText,
|
|
|
|
color: Colors.white,
|
2022-05-15 19:40:15 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
Text(
|
|
|
|
"Visitors viewed Barbeque Nation",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: SubText,
|
|
|
|
color: Colors.white,
|
2022-05-15 19:40:15 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
],
|
2022-05-15 19:40:15 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
],
|
2022-05-30 15:30:50 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(left: 24),
|
|
|
|
child: Text(
|
|
|
|
'My Businesses',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: HeadText,
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
color: DarkGray,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(right: 15, top: 10, bottom: 15),
|
|
|
|
child: TextButton.icon(
|
|
|
|
icon: Icon(
|
|
|
|
Icons.add,
|
|
|
|
color: primaryColor,
|
|
|
|
),
|
|
|
|
label: Text(
|
|
|
|
"Add Business",
|
2022-05-15 19:40:15 +00:00
|
|
|
style: TextStyle(
|
2022-06-01 16:36:23 +00:00
|
|
|
fontFamily: Font,
|
2022-05-15 19:40:15 +00:00
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w600,
|
2022-06-04 06:42:50 +00:00
|
|
|
fontSize: HeadText,
|
|
|
|
color: primaryColor,
|
2022-05-15 19:40:15 +00:00
|
|
|
),
|
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
onPressed: () {
|
|
|
|
Navigator.push(context,
|
|
|
|
MaterialPageRoute(builder: (_) => addbusiness()));
|
|
|
|
},
|
2022-05-15 19:40:15 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Container(
|
2022-06-09 18:43:12 +00:00
|
|
|
height: 400,
|
2022-06-04 06:42:50 +00:00
|
|
|
child: ListView(
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
children: [
|
2022-05-15 19:40:15 +00:00
|
|
|
Padding(
|
2022-06-04 06:42:50 +00:00
|
|
|
padding: const EdgeInsets.only(left: 15),
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
2022-05-17 07:00:55 +00:00
|
|
|
Navigator.push(context,
|
2022-06-04 06:42:50 +00:00
|
|
|
MaterialPageRoute(builder: (_) => businessdetail()));
|
2022-05-17 07:00:55 +00:00
|
|
|
},
|
2022-06-04 06:42:50 +00:00
|
|
|
child: Container(
|
|
|
|
height: 150,
|
|
|
|
width: double.infinity,
|
|
|
|
margin: EdgeInsets.only(right: 15),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(5)),
|
|
|
|
image: new DecorationImage(
|
|
|
|
image: ExactAssetImage(
|
|
|
|
'assets/images/bg.png',
|
2022-06-03 17:41:07 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
fit: BoxFit.cover,
|
2022-05-30 15:30:50 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
foregroundDecoration: BoxDecoration(
|
|
|
|
color: status ? null : Colors.white,
|
|
|
|
backgroundBlendMode:
|
|
|
|
status ? null : BlendMode.saturation,
|
|
|
|
),
|
|
|
|
child: Stack(
|
|
|
|
children: [
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
left: 15, right: 10, top: 75),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(),
|
|
|
|
child: RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
text: "Barbeque Nation ",
|
2022-05-17 17:58:13 +00:00
|
|
|
style: TextStyle(
|
2022-06-01 16:36:23 +00:00
|
|
|
fontFamily: Font,
|
2022-05-17 17:58:13 +00:00
|
|
|
fontStyle: FontStyle.normal,
|
2022-06-04 06:42:50 +00:00
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 16,
|
2022-05-17 17:58:13 +00:00
|
|
|
color: Colors.white,
|
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
children: [
|
|
|
|
TextSpan(
|
|
|
|
text: "4.2 ",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: SubText,
|
|
|
|
color: Color(0xFFFFBE3F),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
WidgetSpan(
|
|
|
|
child: Icon(
|
|
|
|
Icons.star,
|
|
|
|
color: Color(0xFFFFBE3F),
|
|
|
|
size: 18,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
2022-05-17 17:58:13 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
2022-05-25 19:47:31 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
Spacer(),
|
|
|
|
FlutterSwitch(
|
|
|
|
width: 105,
|
|
|
|
height: 40,
|
|
|
|
valueFontSize: HeadText,
|
|
|
|
toggleSize: 25,
|
|
|
|
value: status,
|
|
|
|
borderRadius: 30.0,
|
|
|
|
padding: 8.0,
|
|
|
|
showOnOff: true,
|
|
|
|
onToggle: (val) {
|
|
|
|
setState(() {
|
|
|
|
status = val;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
activeText: "OPEN",
|
|
|
|
activeTextColor: Colors.white,
|
|
|
|
activeTextFontWeight: FontWeight.w600,
|
|
|
|
activeColor: Color(0xFF09CD99),
|
|
|
|
inactiveText: "CLOSED",
|
|
|
|
inactiveTextColor: Colors.white,
|
|
|
|
inactiveTextFontWeight: FontWeight.w600,
|
|
|
|
inactiveColor: Color(0xFFFF4B4C),
|
|
|
|
),
|
|
|
|
],
|
2022-05-16 19:05:03 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
left: 10,
|
|
|
|
),
|
|
|
|
child: RichText(
|
|
|
|
text: TextSpan(
|
2022-05-16 19:05:03 +00:00
|
|
|
children: [
|
2022-06-04 06:42:50 +00:00
|
|
|
WidgetSpan(
|
|
|
|
child: Icon(
|
|
|
|
Icons.location_on_outlined,
|
|
|
|
color: Colors.white,
|
|
|
|
size: 20,
|
2022-05-17 17:58:13 +00:00
|
|
|
),
|
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
TextSpan(
|
|
|
|
text: "Town Hall, Coimbatore",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: HeadText,
|
|
|
|
color: Colors.white,
|
|
|
|
),
|
2022-05-16 19:05:03 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(left: 15),
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(context,
|
|
|
|
MaterialPageRoute(builder: (_) => businessdetail()));
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: 150,
|
|
|
|
width: double.infinity,
|
|
|
|
margin: EdgeInsets.only(right: 15, top: 10),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
image: new DecorationImage(
|
|
|
|
image: ExactAssetImage(
|
|
|
|
'assets/images/bg.png',
|
|
|
|
),
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(5)),
|
|
|
|
),
|
|
|
|
foregroundDecoration: BoxDecoration(
|
|
|
|
color: status1 ? null : Colors.grey,
|
|
|
|
backgroundBlendMode:
|
|
|
|
status1 ? null : BlendMode.saturation,
|
|
|
|
),
|
|
|
|
child: Stack(
|
|
|
|
children: [
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
left: 15, right: 10, top: 75),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(),
|
|
|
|
child: RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
text: "Barbeque Nation ",
|
2022-05-17 17:58:13 +00:00
|
|
|
style: TextStyle(
|
2022-06-01 16:36:23 +00:00
|
|
|
fontFamily: Font,
|
2022-05-17 17:58:13 +00:00
|
|
|
fontStyle: FontStyle.normal,
|
2022-06-04 06:42:50 +00:00
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 15,
|
2022-05-17 17:58:13 +00:00
|
|
|
color: Colors.white,
|
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
children: [
|
|
|
|
TextSpan(
|
|
|
|
text: "4.2 ",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: 12,
|
|
|
|
color: Color(0xFFFFBE3F),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
WidgetSpan(
|
|
|
|
child: Icon(
|
|
|
|
Icons.star,
|
|
|
|
color: Color(0xFFFFBE3F),
|
|
|
|
size: 18,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
2022-05-17 17:58:13 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
2022-05-17 17:58:13 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
Spacer(),
|
|
|
|
FlutterSwitch(
|
|
|
|
width: 105,
|
|
|
|
height: 40,
|
|
|
|
valueFontSize: HeadText,
|
|
|
|
toggleSize: 25,
|
|
|
|
value: status1,
|
|
|
|
borderRadius: 30.0,
|
|
|
|
padding: 8.0,
|
|
|
|
showOnOff: true,
|
|
|
|
onToggle: (val) {
|
|
|
|
setState(() {
|
|
|
|
status1 = val;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
activeText: "OPEN",
|
|
|
|
activeTextColor: Colors.white,
|
|
|
|
activeTextFontWeight: FontWeight.w600,
|
|
|
|
activeColor: Color(0xFF09CD99),
|
|
|
|
inactiveText: "CLOSED",
|
|
|
|
inactiveTextColor: Colors.white,
|
|
|
|
inactiveTextFontWeight: FontWeight.w600,
|
|
|
|
inactiveColor: Color(0xFFFF4B4C),
|
|
|
|
),
|
|
|
|
],
|
2022-05-16 19:05:03 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
left: 10,
|
|
|
|
),
|
|
|
|
child: RichText(
|
|
|
|
text: TextSpan(
|
2022-05-16 19:05:03 +00:00
|
|
|
children: [
|
2022-06-04 06:42:50 +00:00
|
|
|
WidgetSpan(
|
|
|
|
child: Icon(
|
|
|
|
Icons.location_on_outlined,
|
|
|
|
color: Colors.white,
|
|
|
|
size: 20,
|
2022-05-17 17:58:13 +00:00
|
|
|
),
|
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
TextSpan(
|
|
|
|
text: "Town Hall, Coimbatore",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: HeadText,
|
|
|
|
color: Colors.white,
|
|
|
|
),
|
2022-05-16 19:05:03 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(left: 15),
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(context,
|
|
|
|
MaterialPageRoute(builder: (_) => businessdetail()));
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: 150,
|
|
|
|
width: double.infinity,
|
|
|
|
margin: EdgeInsets.only(right: 15, top: 10),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
image: new DecorationImage(
|
|
|
|
image: ExactAssetImage(
|
|
|
|
'assets/images/bg.png',
|
|
|
|
),
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(5)),
|
|
|
|
),
|
|
|
|
foregroundDecoration: BoxDecoration(
|
|
|
|
color: status2 ? null : Colors.grey,
|
|
|
|
backgroundBlendMode:
|
|
|
|
status2 ? null : BlendMode.saturation,
|
|
|
|
),
|
|
|
|
child: Stack(
|
|
|
|
children: [
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
left: 15, right: 10, top: 75),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(),
|
|
|
|
child: RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
text: "Barbeque Nation ",
|
2022-05-30 15:30:50 +00:00
|
|
|
style: TextStyle(
|
2022-06-01 16:36:23 +00:00
|
|
|
fontFamily: Font,
|
2022-05-30 15:30:50 +00:00
|
|
|
fontStyle: FontStyle.normal,
|
2022-06-04 06:42:50 +00:00
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 15,
|
2022-05-30 15:30:50 +00:00
|
|
|
color: Colors.white,
|
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
children: [
|
|
|
|
TextSpan(
|
|
|
|
text: "4.2 ",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: 12,
|
|
|
|
color: Color(0xFFFFBE3F),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
WidgetSpan(
|
|
|
|
child: Icon(
|
|
|
|
Icons.star,
|
|
|
|
color: Color(0xFFFFBE3F),
|
|
|
|
size: 18,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
2022-05-30 15:30:50 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
FlutterSwitch(
|
|
|
|
width: 105,
|
|
|
|
height: 40,
|
|
|
|
valueFontSize: HeadText,
|
|
|
|
toggleSize: 25,
|
|
|
|
value: status2,
|
|
|
|
borderRadius: 30.0,
|
|
|
|
padding: 8.0,
|
|
|
|
showOnOff: true,
|
|
|
|
onToggle: (val) {
|
|
|
|
setState(() {
|
|
|
|
status2 = val;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
activeText: "OPEN",
|
|
|
|
activeTextColor: Colors.white,
|
|
|
|
activeTextFontWeight: FontWeight.w600,
|
|
|
|
activeColor: Color(0xFF09CD99),
|
|
|
|
inactiveText: "CLOSED",
|
|
|
|
inactiveTextColor: Colors.white,
|
|
|
|
inactiveTextFontWeight: FontWeight.w600,
|
|
|
|
inactiveColor: Color(0xFFFF4B4C),
|
2022-05-30 15:30:50 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
left: 10,
|
|
|
|
),
|
|
|
|
child: RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
children: [
|
|
|
|
WidgetSpan(
|
|
|
|
child: Icon(
|
|
|
|
Icons.location_on_outlined,
|
|
|
|
color: Colors.white,
|
|
|
|
size: 20,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
TextSpan(
|
|
|
|
text: "Town Hall, Coimbatore",
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: HeadText,
|
|
|
|
color: Colors.white,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
2022-05-30 15:30:50 +00:00
|
|
|
),
|
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
2022-05-16 19:05:03 +00:00
|
|
|
),
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
2022-05-15 19:40:15 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
],
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
2022-06-04 06:42:50 +00:00
|
|
|
),
|
|
|
|
],
|
2022-05-14 20:28:31 +00:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|