business details button and logo fixed

This commit is contained in:
vignesh 2022-05-18 23:57:10 +05:30
parent fe34f7ac20
commit 17e46c8490

View File

@ -46,18 +46,19 @@ class _businessdetailState extends State<businessdetail> {
size: 24,
color: Color(0xFF3D3D3D),
),
mini: true,
backgroundColor: Colors.white,
onPressed: () {},
),
Spacer(),
FlutterSwitch(
width: 130,
height: 60,
valueFontSize: 15,
toggleSize: 25,
width: 107,
height: 50,
valueFontSize: 12,
toggleSize: 20,
value: status,
borderRadius: 30.0,
padding: 8,
padding: 5,
showOnOff: true,
onToggle: (val) {
setState(() {
@ -66,9 +67,9 @@ class _businessdetailState extends State<businessdetail> {
},
activeText: "OPEN",
activeSwitchBorder:
Border.all(color: Colors.white, width: 13),
Border.all(color: Colors.white, width: 10),
inactiveSwitchBorder:
Border.all(color: Colors.white, width: 13),
Border.all(color: Colors.white, width: 10),
activeTextColor: Colors.white,
activeTextFontWeight: FontWeight.w600,
activeColor: Color(0xFF09CD99),
@ -93,23 +94,65 @@ class _businessdetailState extends State<businessdetail> {
borderRadius: BorderRadius.all(Radius.circular(10)),
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Align(
alignment: Alignment.topCenter,
child: Image.asset(
'assets/images/store_logo.png',
width: 55,
height: 55,
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: 18,
color: Colors.black,
),
children: [],
),
),
RichText(
text: TextSpan(
children: [
TextSpan(
text: "42 ",
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,
),
),
],
),
)
],
),
),
Spacer(),
Column(
children: [
Text('data'),
Text('data'),
],
IconButton(
icon: Image.asset('assets/images/bell.png'),
onPressed: () {
Navigator.pop(context);
},
),
Icon(Icons.arrow_back),
],
),
),