|
|
|
|
@ -224,37 +224,36 @@ class AppBarWidgetState extends State<AppBarWidget> {
|
|
|
|
|
),
|
|
|
|
|
centerTitle: true,
|
|
|
|
|
actions: <Widget>[
|
|
|
|
|
(widget.isPharmacy && widget.showPharmacyCart)
|
|
|
|
|
? Container()
|
|
|
|
|
// ? IconButton(
|
|
|
|
|
// icon: Badge(
|
|
|
|
|
// shape: BadgeShape.circle,
|
|
|
|
|
// badgeContent:
|
|
|
|
|
Text(_badgeText, style: TextStyle(color: Colors.white)),
|
|
|
|
|
// child: Icon(Icons.shopping_cart)),
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// onPressed: () {
|
|
|
|
|
// Navigator.of(context).popUntil(ModalRoute.withName('/'));
|
|
|
|
|
// })
|
|
|
|
|
: Container(),
|
|
|
|
|
// (widget.isPharmacy && widget.showPharmacyCart)
|
|
|
|
|
// ? Container()
|
|
|
|
|
// // ? IconButton(
|
|
|
|
|
// // icon: Badge(
|
|
|
|
|
// // shape: BadgeShape.circle,
|
|
|
|
|
// // badgeContent:
|
|
|
|
|
// // Text(_badgeText, style: TextStyle(color: Colors.white)),
|
|
|
|
|
// // child: Icon(Icons.shopping_cart)),
|
|
|
|
|
// // color: Colors.white,
|
|
|
|
|
// // onPressed: () {
|
|
|
|
|
// // Navigator.of(context).popUntil(ModalRoute.withName('/'));
|
|
|
|
|
// // })
|
|
|
|
|
// : Container(),
|
|
|
|
|
(widget.isOfferPackages && widget.showOfferPackagesCart)
|
|
|
|
|
? Container()
|
|
|
|
|
// ? IconButton(
|
|
|
|
|
// icon: Badge(
|
|
|
|
|
// position: BadgePosition.topStart(top: -15, start: -10),
|
|
|
|
|
// badgeContent: Text(
|
|
|
|
|
// _badgeText,
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
// fontSize: 9,
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// fontWeight: FontWeight.normal),
|
|
|
|
|
// ),
|
|
|
|
|
// child: Icon(Icons.shopping_cart)),
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// onPressed: () {
|
|
|
|
|
// // Cart Click Event
|
|
|
|
|
// if (_onCartClick != null) _onCartClick();
|
|
|
|
|
// })
|
|
|
|
|
? IconButton(
|
|
|
|
|
icon: Badge(
|
|
|
|
|
position: BadgePosition.topStart(top: -15, start: -10),
|
|
|
|
|
badgeContent: Text(
|
|
|
|
|
_badgeText,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 9,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.normal),
|
|
|
|
|
),
|
|
|
|
|
child: Icon(Icons.shopping_cart)),
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
// Cart Click Event
|
|
|
|
|
if (_onCartClick != null) _onCartClick();
|
|
|
|
|
})
|
|
|
|
|
: Container(),
|
|
|
|
|
if (widget.showHomeAppBarIcon)
|
|
|
|
|
IconButton(
|
|
|
|
|
@ -375,10 +374,10 @@ class _RobotIcon extends State<RobotIcon> {
|
|
|
|
|
bottom: -15);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// setAnimation() async {
|
|
|
|
|
// /// await sharedPref.getBool(IS_ROBOT_VISIBLE) ||
|
|
|
|
|
// // var animation =
|
|
|
|
|
// // IS_TEXT_COMPLETED == ? true : false;
|
|
|
|
|
// setAnimation() async {
|
|
|
|
|
// /// await sharedPref.getBool(IS_ROBOT_VISIBLE) ||
|
|
|
|
|
// // var animation =
|
|
|
|
|
// // IS_TEXT_COMPLETED == ? true : false;
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|