diff --git a/openclosenew/assets/images/call_icon.png b/openclosenew/assets/images/call_icon.png new file mode 100644 index 0000000..f25017a Binary files /dev/null and b/openclosenew/assets/images/call_icon.png differ diff --git a/openclosenew/assets/images/clock_icon.png b/openclosenew/assets/images/clock_icon.png new file mode 100644 index 0000000..7823712 Binary files /dev/null and b/openclosenew/assets/images/clock_icon.png differ diff --git a/openclosenew/assets/images/edit_pen.png b/openclosenew/assets/images/edit_pen.png new file mode 100644 index 0000000..c773772 Binary files /dev/null and b/openclosenew/assets/images/edit_pen.png differ diff --git a/openclosenew/assets/images/glob_icon.png b/openclosenew/assets/images/glob_icon.png new file mode 100644 index 0000000..3693608 Binary files /dev/null and b/openclosenew/assets/images/glob_icon.png differ diff --git a/openclosenew/assets/images/loc_logo.png b/openclosenew/assets/images/loc_logo.png new file mode 100644 index 0000000..4187133 Binary files /dev/null and b/openclosenew/assets/images/loc_logo.png differ diff --git a/openclosenew/assets/images/nonveg_icon.png b/openclosenew/assets/images/nonveg_icon.png new file mode 100644 index 0000000..26d2057 Binary files /dev/null and b/openclosenew/assets/images/nonveg_icon.png differ diff --git a/openclosenew/assets/images/veg_logo.png b/openclosenew/assets/images/veg_logo.png new file mode 100644 index 0000000..21e5e5e Binary files /dev/null and b/openclosenew/assets/images/veg_logo.png differ diff --git a/openclosenew/lib/11_busiesshome.dart b/openclosenew/lib/11_busiesshome.dart index 5de3b46..413e0b2 100644 --- a/openclosenew/lib/11_busiesshome.dart +++ b/openclosenew/lib/11_busiesshome.dart @@ -400,7 +400,7 @@ class _businesshomeState extends State { ), children: [ TextSpan( - text: "42 ", + text: "4.2 ", style: TextStyle( fontFamily: 'Manrope', fontStyle: FontStyle.normal, @@ -532,7 +532,7 @@ class _businesshomeState extends State { ), children: [ TextSpan( - text: "42 ", + text: "4.2 ", style: TextStyle( fontFamily: 'Manrope', fontStyle: FontStyle.normal, @@ -664,7 +664,7 @@ class _businesshomeState extends State { ), children: [ TextSpan( - text: "42 ", + text: "4.2 ", style: TextStyle( fontFamily: 'Manrope', fontStyle: FontStyle.normal, diff --git a/openclosenew/lib/businessdetail.dart b/openclosenew/lib/businessdetail.dart index efecad1..e84530d 100644 --- a/openclosenew/lib/businessdetail.dart +++ b/openclosenew/lib/businessdetail.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_switch/flutter_switch.dart'; @@ -48,7 +47,9 @@ class _businessdetailState extends State { ), mini: true, backgroundColor: Colors.white, - onPressed: () {}, + onPressed: () { + Navigator.pop(context); + }, ), Spacer(), FlutterSwitch( @@ -88,71 +89,243 @@ class _businessdetailState extends State { child: Container( margin: EdgeInsets.only(right: 20, left: 20, top: 60), padding: EdgeInsets.all(15), - height: 250, + height: 300, decoration: BoxDecoration( color: Colors.white, - borderRadius: BorderRadius.all(Radius.circular(10)), - ), - child: Row( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Image.asset( - 'assets/images/store_logo.png', - width: 60, - height: 60, + borderRadius: BorderRadius.all( + Radius.circular(10), + ), + boxShadow: [ + BoxShadow( + color: Colors.grey.shade500, + offset: Offset(4.0, 4.0), + blurRadius: 10.0, + spreadRadius: 1.0, ), - Padding( - padding: const EdgeInsets.only(top: 10, left: 5), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - RichText( - text: TextSpan( - text: "Barbeque Nation ", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w600, - fontSize: 18, - color: Colors.black, + ], + ), + child: Column( + children: [ + Row( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Image.asset( + 'assets/images/store_logo.png', + width: 60, + height: 60, + ), + Padding( + padding: + const EdgeInsets.only(top: 10, left: 5), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + RichText( + text: TextSpan( + text: "Barbeque Nation ", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w600, + fontSize: 16, + color: Colors.black, + ), + ), ), - children: [], - ), + RichText( + text: TextSpan( + 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: 15, + ), + ), + ], + ), + ), + ], ), - RichText( - text: TextSpan( + ), + Spacer(), + IconButton( + icon: Image.asset( + 'assets/images/edit_pen.png', + color: Colors.black, + ), + onPressed: () { + Navigator.pop(context); + }, + ), + ], + ), + Spacer(), + Align( + alignment: Alignment.topLeft, + child: Padding( + padding: const EdgeInsets.only(left: 10), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( children: [ - TextSpan( - text: "42 ", + Image.asset( + 'assets/images/veg_logo.png', + width: 20, + height: 20, + ), + SizedBox( + width: 10, + ), + Text( + 'Veg', 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: 10, + ), + Image.asset( + 'assets/images/nonveg_icon.png', + width: 20, + height: 20, + ), + SizedBox( + width: 10, + ), + Text( + 'Non-Veg', + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 15, ), ), ], ), - ) - ], + 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: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w500, + fontSize: 15, + color: Color(0xFF5C5C5C), + ), + ), + ], + ), + ), + ), + ], + ), + 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: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w500, + fontSize: 15, + color: Color(0xFF5C5C5C), + ), + ), + ], + ), + ), + RichText( + text: TextSpan( + children: [ + WidgetSpan( + child: Image.asset( + 'assets/images/glob_icon.png', + width: 25, + height: 25, + ), + ), + TextSpan( + text: "www.bbqnation.com", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w500, + fontSize: 15, + color: Color(0xFF5C5C5C), + ), + ), + ], + ), + ), + RichText( + text: TextSpan( + children: [ + WidgetSpan( + child: Image.asset( + 'assets/images/clock_icon.png', + width: 25, + height: 25, + ), + ), + TextSpan( + text: + "Working Hours: Mon - Fri 9:00am to 9:00pm", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w500, + fontSize: 15, + color: Color(0xFF5C5C5C), + ), + ), + ], + ), + ), + ], + ), ), ), - Spacer(), - IconButton( - icon: Image.asset('assets/images/bell.png'), - onPressed: () { - Navigator.pop(context); - }, - ), ], ), ),