add to cart fix

merge-update-with-lab-changes
hussam al-habibeh 4 years ago
parent 75ef3fde80
commit a8fb7152b1

@ -50,7 +50,7 @@ class BottomNavPharmacyItem extends StatelessWidget {
splashColor: Colors.transparent,
onTap: () {
if (!Provider.of<ProjectViewModel>(context, listen: false)
.isLogin &&
.isLogin &&
(currentIndex == 2 || currentIndex == 3))
Navigator.push(
context,
@ -68,19 +68,19 @@ class BottomNavPharmacyItem extends StatelessWidget {
),
currentIndex == index
? Divider(
color: Color(0xff5AB145),
thickness: 3.5,
)
color: Color(0xff5AB145),
thickness: 3.5,
)
: Divider(
thickness: 0,
),
thickness: 0,
),
Container(
child: Icon(currentIndex == index ? activeIcon : icon,
color: isHome
? Color(0xff5AB145)
: currentIndex == index
? Colors.grey
: Colors.grey,
? Colors.grey
: Colors.grey,
size: 22.0),
),
SizedBox(
@ -92,8 +92,9 @@ class BottomNavPharmacyItem extends StatelessWidget {
title,
textAlign: TextAlign.center,
color: currentIndex == index ? Colors.grey : Colors.grey,
fontWeight:
currentIndex == index ? FontWeight.bold : FontWeight.w400,
fontWeight: currentIndex == index
? FontWeight.bold
: FontWeight.w400,
fontSize: currentIndex == index ? 13 : 11,
),
],
@ -110,13 +111,18 @@ class BottomNavPharmacyItem extends StatelessWidget {
right: -4.5,
child: Container(
decoration: BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.circular(15),
color: Colors.red,
borderRadius: BorderRadius.circular(15),
),
padding: EdgeInsets.only(left: 7, right: 6.5),
height: 18,
child: Center(child: Texts(orderPreviewViewModel.cartResponse.quantityCount.toString(), style: "caption", medium: true, color: Colors.white,)),
child: Center(
child: Texts(
orderPreviewViewModel.cartResponse.quantityCount.toString(),
style: "caption",
medium: true,
color: Colors.white,
)),
),
)
],

Loading…
Cancel
Save