From cb8b0f588ac9c20eff8f22c3aa862e50691c2166 Mon Sep 17 00:00:00 2001 From: vignesh Date: Mon, 30 May 2022 21:00:50 +0530 Subject: [PATCH] response design error completed --- openclosenew/lib/11_busiesshome.dart | 1439 +++++++++++----------- openclosenew/lib/businessempty.dart | 1 + openclosenew/lib/businessstart_page.dart | 33 +- 3 files changed, 742 insertions(+), 731 deletions(-) diff --git a/openclosenew/lib/11_busiesshome.dart b/openclosenew/lib/11_busiesshome.dart index 7b992d4..290ea6d 100644 --- a/openclosenew/lib/11_busiesshome.dart +++ b/openclosenew/lib/11_busiesshome.dart @@ -27,752 +27,759 @@ class _businesshomeState extends State { Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.white, - body: Column( - children: [ - SafeArea( - child: Row( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Container( - height: 50, - width: 50, - margin: EdgeInsets.all(20), - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(50), - color: Colors.grey, + body: SingleChildScrollView( + child: 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, + ), ), - ), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 25, - ), - Text( - 'Hi, Sudharsan', - style: TextStyle( - color: Colors.black, - fontSize: 16, - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w600, + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + 'Hi, Sudharsan', + style: TextStyle( + color: Colors.black, + fontSize: 16, + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w600, + ), ), - ), - Text( - 'Mon, 02 May 2022', - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w500, - fontSize: 11, + Text( + 'Mon, 02 May 2022', + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w500, + fontSize: 11, + ), ), - ), - ], - ), - Spacer(), - Padding( - padding: const EdgeInsets.only(top: 20), - child: IconButton( + ], + ), + Spacer(), + IconButton( + padding: EdgeInsets.only(right: 15), icon: Image.asset('assets/images/bell.png'), onPressed: () { Navigator.pop(context); }, ), - ), - ], + ], + ), ), - ), - SizedBox( - height: 20, - ), - Container( - height: 100, - child: ListView( - scrollDirection: Axis.horizontal, + 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'), + ), + 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: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 14, + color: Colors.white, + ), + ), + Text( + "42", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 26, + color: Colors.white, + ), + ), + Text( + "Visitors viewed Barbeque Nation", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 12, + color: Colors.white, + ), + ), + ], + ), + ), + ), + ), + ), + 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'), + ), + 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: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 14, + color: Colors.white, + ), + ), + Text( + "42", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 26, + color: Colors.white, + ), + ), + Text( + "Visitors viewed Barbeque Nation", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 12, + color: Colors.white, + ), + ), + ], + ), + ), + ), + ), + ), + 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'), + ), + 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: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 14, + color: Colors.white, + ), + ), + Text( + "42", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 26, + color: Colors.white, + ), + ), + Text( + "Visitors viewed Barbeque Nation", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 12, + color: Colors.white, + ), + ), + ], + ), + ), + ), + ), + ), + ], + ), + ), + Row( 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'), - ), - 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: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 14, - color: Colors.white, - ), - ), - Text( - "42", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 26, - color: Colors.white, - ), - ), - Text( - "Visitors viewed Barbeque Nation", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 12, - color: Colors.white, - ), - ), - ], - ), - ), - ), - ), - ), - 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'), - ), - 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: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 14, - color: Colors.white, - ), - ), - Text( - "42", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 26, - color: Colors.white, - ), - ), - Text( - "Visitors viewed Barbeque Nation", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 12, - color: Colors.white, - ), - ), - ], - ), - ), - ), - ), - ), - 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'), - ), - 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: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 14, - color: Colors.white, - ), - ), - Text( - "42", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 26, - color: Colors.white, - ), - ), - Text( - "Visitors viewed Barbeque Nation", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 12, - color: Colors.white, - ), - ), - ], - ), - ), - ), - ), - ), - ], - ), - ), - Row( - children: [ - Padding( - padding: const EdgeInsets.only(left: 24), - child: Text( - 'My Businesses', - style: TextStyle( - fontSize: 16, - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w600, - ), - ), - ), - Padding( - padding: const EdgeInsets.only(right: 15, top: 10, bottom: 15), - child: TextButton.icon( - icon: Icon( - Icons.add, - color: Color(0xFF09CD99), - ), - label: Text( - "Add Business", + padding: const EdgeInsets.only(left: 24), + child: Text( + 'My Businesses', style: TextStyle( + fontSize: 16, fontFamily: 'Manrope', fontStyle: FontStyle.normal, fontWeight: FontWeight.w600, - fontSize: 12, + ), + ), + ), + Spacer(), + Padding( + padding: + const EdgeInsets.only(right: 15, top: 10, bottom: 15), + child: TextButton.icon( + icon: Icon( + Icons.add, color: Color(0xFF09CD99), ), - ), - onPressed: () { - Navigator.push(context, - MaterialPageRoute(builder: (_) => addbusiness())); - }, - ), - ), - ], - ), - Container( - height: 400, - child: ListView( - scrollDirection: Axis.vertical, - children: [ - Padding( - padding: const EdgeInsets.only(left: 15), - child: InkWell( - onTap: () { - Navigator.push(context, - MaterialPageRoute(builder: (_) => businessdetail())); - }, - child: Container( - height: 200, - width: double.infinity, - margin: EdgeInsets.only(right: 15), - decoration: BoxDecoration( - borderRadius: BorderRadius.all(Radius.circular(5)), - ), - foregroundDecoration: BoxDecoration( - color: status ? null : Colors.white, - backgroundBlendMode: - status ? null : BlendMode.saturation, - ), - child: Stack( - children: [ - Image.asset( - 'assets/images/bg.png', - height: 250, - ), - 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 ", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w600, - fontSize: 18, - color: Colors.white, - ), - children: [ - TextSpan( - text: "4.2 ", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 15, - color: Color(0xFFFFBE3F), - ), - ), - WidgetSpan( - child: Icon( - Icons.star, - color: Color(0xFFFFBE3F), - size: 18, - ), - ), - ], - ), - ), - ), - SizedBox( - width: 35, - ), - FlutterSwitch( - width: 105, - height: 40, - valueFontSize: 15, - 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), - ), - ], - ), - ), - 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: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 14, - color: Colors.white, - ), - ), - ], - ), - ), - ), - ], - ), - ], + label: Text( + "Add Business", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w600, + fontSize: 15, + color: Color(0xFF09CD99), ), ), - ), - ), - Padding( - padding: const EdgeInsets.only(left: 15), - child: InkWell( - onTap: () { + onPressed: () { Navigator.push(context, - MaterialPageRoute(builder: (_) => businessdetail())); + MaterialPageRoute(builder: (_) => addbusiness())); }, - child: Container( - height: 200, - margin: EdgeInsets.only(right: 15, top: 10), - decoration: BoxDecoration( - borderRadius: BorderRadius.all(Radius.circular(5)), - ), - foregroundDecoration: BoxDecoration( - color: status1 ? null : Colors.grey, - backgroundBlendMode: - status1 ? null : BlendMode.saturation, - ), - child: Stack( - children: [ - Image.asset( - 'assets/images/bg.png', - height: 250, - ), - 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 ", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w600, - fontSize: 18, - color: Colors.white, - ), - children: [ - TextSpan( - text: "4.2 ", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 15, - color: Color(0xFFFFBE3F), - ), - ), - WidgetSpan( - child: Icon( - Icons.star, - color: Color(0xFFFFBE3F), - size: 18, - ), - ), - ], - ), - ), - ), - SizedBox( - width: 35, - ), - FlutterSwitch( - width: 105, - height: 40, - valueFontSize: 15, - 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), - ), - ], - ), - ), - 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: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 14, - color: Colors.white, - ), - ), - ], - ), - ), - ), - ], - ), - ], - ), - ), - ), - ), - Padding( - padding: const EdgeInsets.only(left: 15), - child: InkWell( - onTap: () { - Navigator.push(context, - MaterialPageRoute(builder: (_) => businessdetail())); - }, - child: Container( - height: 200, - margin: EdgeInsets.only(right: 15, top: 10), - decoration: BoxDecoration( - borderRadius: BorderRadius.all(Radius.circular(5)), - ), - foregroundDecoration: BoxDecoration( - color: status2 ? null : Colors.grey, - backgroundBlendMode: - status2 ? null : BlendMode.saturation, - ), - child: Stack( - children: [ - Image.asset( - 'assets/images/bg.png', - height: 250, - ), - 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 ", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w600, - fontSize: 18, - color: Colors.white, - ), - children: [ - TextSpan( - text: "4.2 ", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 15, - color: Color(0xFFFFBE3F), - ), - ), - WidgetSpan( - child: Icon( - Icons.star, - color: Color(0xFFFFBE3F), - size: 18, - ), - ), - ], - ), - ), - ), - SizedBox( - width: 35, - ), - FlutterSwitch( - width: 105, - height: 40, - valueFontSize: 15, - 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), - ), - ], - ), - ), - 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: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 14, - color: Colors.white, - ), - ), - ], - ), - ), - ), - ], - ), - ], - ), - ), ), ), ], ), - ), - Spacer(), - BottomNavigationBar( - iconSize: 20, - unselectedFontSize: 12, - selectedFontSize: 12, - type: BottomNavigationBarType.fixed, - items: const [ - BottomNavigationBarItem( - icon: ImageIcon( - AssetImage('assets/images/store.png'), - ), - label: 'Business', + Container( + height: 400, + child: ListView( + scrollDirection: Axis.vertical, + children: [ + Padding( + padding: const EdgeInsets.only(left: 15), + child: InkWell( + onTap: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (_) => businessdetail())); + }, + child: Container( + height: 200, + width: double.infinity, + margin: EdgeInsets.only(right: 15), + decoration: BoxDecoration( + borderRadius: BorderRadius.all(Radius.circular(5)), + ), + foregroundDecoration: BoxDecoration( + color: status ? null : Colors.white, + backgroundBlendMode: + status ? null : BlendMode.saturation, + ), + child: Stack( + children: [ + Image.asset( + 'assets/images/bg.png', + height: 250, + ), + 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 ", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w600, + fontSize: 18, + color: Colors.white, + ), + children: [ + TextSpan( + text: "4.2 ", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 15, + color: Color(0xFFFFBE3F), + ), + ), + WidgetSpan( + child: Icon( + Icons.star, + color: Color(0xFFFFBE3F), + size: 18, + ), + ), + ], + ), + ), + ), + SizedBox( + width: 35, + ), + FlutterSwitch( + width: 105, + height: 40, + valueFontSize: 15, + 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), + ), + ], + ), + ), + 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: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 14, + color: Colors.white, + ), + ), + ], + ), + ), + ), + ], + ), + ], + ), + ), + ), + ), + Padding( + padding: const EdgeInsets.only(left: 15), + child: InkWell( + onTap: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (_) => businessdetail())); + }, + child: Container( + height: 200, + margin: EdgeInsets.only(right: 15, top: 10), + decoration: BoxDecoration( + borderRadius: BorderRadius.all(Radius.circular(5)), + ), + foregroundDecoration: BoxDecoration( + color: status1 ? null : Colors.grey, + backgroundBlendMode: + status1 ? null : BlendMode.saturation, + ), + child: Stack( + children: [ + Image.asset( + 'assets/images/bg.png', + height: 250, + ), + 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 ", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w600, + fontSize: 18, + color: Colors.white, + ), + children: [ + TextSpan( + text: "4.2 ", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 15, + color: Color(0xFFFFBE3F), + ), + ), + WidgetSpan( + child: Icon( + Icons.star, + color: Color(0xFFFFBE3F), + size: 18, + ), + ), + ], + ), + ), + ), + SizedBox( + width: 35, + ), + FlutterSwitch( + width: 105, + height: 40, + valueFontSize: 15, + 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), + ), + ], + ), + ), + 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: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 14, + color: Colors.white, + ), + ), + ], + ), + ), + ), + ], + ), + ], + ), + ), + ), + ), + Padding( + padding: const EdgeInsets.only(left: 15), + child: InkWell( + onTap: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (_) => businessdetail())); + }, + child: Container( + height: 200, + margin: EdgeInsets.only(right: 15, top: 10), + decoration: BoxDecoration( + borderRadius: BorderRadius.all(Radius.circular(5)), + ), + foregroundDecoration: BoxDecoration( + color: status2 ? null : Colors.grey, + backgroundBlendMode: + status2 ? null : BlendMode.saturation, + ), + child: Stack( + children: [ + Image.asset( + 'assets/images/bg.png', + height: 250, + ), + 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 ", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w600, + fontSize: 18, + color: Colors.white, + ), + children: [ + TextSpan( + text: "4.2 ", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 15, + color: Color(0xFFFFBE3F), + ), + ), + WidgetSpan( + child: Icon( + Icons.star, + color: Color(0xFFFFBE3F), + size: 18, + ), + ), + ], + ), + ), + ), + SizedBox( + width: 35, + ), + FlutterSwitch( + width: 105, + height: 40, + valueFontSize: 15, + 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), + ), + ], + ), + ), + 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: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 14, + color: Colors.white, + ), + ), + ], + ), + ), + ), + ], + ), + ], + ), + ), + ), + ), + ], ), - BottomNavigationBarItem( - icon: ImageIcon( - AssetImage('assets/images/messages.png'), + ), + BottomNavigationBar( + iconSize: 20, + unselectedFontSize: 12, + selectedFontSize: 12, + type: BottomNavigationBarType.fixed, + items: const [ + BottomNavigationBarItem( + icon: ImageIcon( + AssetImage('assets/images/store.png'), + ), + label: 'Business', ), - label: 'Chat', - ), - BottomNavigationBarItem( - icon: ImageIcon( - AssetImage('assets/images/discount.png'), + BottomNavigationBarItem( + icon: ImageIcon( + AssetImage('assets/images/messages.png'), + ), + label: 'Chat', ), - label: 'Offer', - ), - BottomNavigationBarItem( - icon: ImageIcon( - AssetImage('assets/images/profile.png'), + BottomNavigationBarItem( + icon: ImageIcon( + AssetImage('assets/images/discount.png'), + ), + label: 'Offer', ), - label: 'Profile', - ), - BottomNavigationBarItem( - icon: ImageIcon( - AssetImage('assets/images/setting.png'), + BottomNavigationBarItem( + icon: ImageIcon( + AssetImage('assets/images/profile.png'), + ), + label: 'Profile', ), - label: 'Settings', - ), - ], - currentIndex: _selectedIndex, - selectedItemColor: Color(0xff09CD99), - onTap: _onItemTapped, - ), - ], + BottomNavigationBarItem( + icon: ImageIcon( + AssetImage('assets/images/setting.png'), + ), + label: 'Settings', + ), + ], + currentIndex: _selectedIndex, + selectedItemColor: Color(0xff09CD99), + onTap: _onItemTapped, + ), + ], + ), ), ); } diff --git a/openclosenew/lib/businessempty.dart b/openclosenew/lib/businessempty.dart index 58a3ff9..7b323be 100644 --- a/openclosenew/lib/businessempty.dart +++ b/openclosenew/lib/businessempty.dart @@ -104,6 +104,7 @@ class _businessemptyState extends State { mainAxisAlignment: MainAxisAlignment.center, children: [ DottedBorder( + dashPattern: [5, 5, 5, 5], color: Color(0xff09CD99), padding: EdgeInsets.all(5), radius: Radius.circular(6), diff --git a/openclosenew/lib/businessstart_page.dart b/openclosenew/lib/businessstart_page.dart index ae8dd1e..59e5979 100644 --- a/openclosenew/lib/businessstart_page.dart +++ b/openclosenew/lib/businessstart_page.dart @@ -30,26 +30,29 @@ class _businessState extends State { Spacer(), Row( children: [ - Padding( - padding: const EdgeInsets.only(left: 55, right: 20, bottom: 24), - child: TextButton( - onPressed: () { - Navigator.push(context, - MaterialPageRoute(builder: (_) => businessempty())); - }, - child: Text( - "Skip", - style: TextStyle(color: Colors.grey.shade600), + Expanded( + child: Padding( + padding: const EdgeInsets.only(left: 24, bottom: 24), + child: MaterialButton( + height: 50, + minWidth: double.infinity, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(4)), + onPressed: () { + Navigator.push(context, + MaterialPageRoute(builder: (_) => businessempty())); + }, + child: Text( + 'Skip', + style: + TextStyle(color: Colors.grey.shade600, fontSize: 15), + ), ), ), ), - SizedBox( - width: 50, - ), Expanded( child: Padding( - padding: - const EdgeInsets.only(left: 0, right: 24, bottom: 24), + padding: const EdgeInsets.only(right: 24, bottom: 24), child: MaterialButton( height: 50, minWidth: double.infinity,