diff --git a/lib/widgets/others/app_scaffold_widget.dart b/lib/widgets/others/app_scaffold_widget.dart index 87976dcb..93bccbd2 100644 --- a/lib/widgets/others/app_scaffold_widget.dart +++ b/lib/widgets/others/app_scaffold_widget.dart @@ -224,37 +224,36 @@ class AppBarWidgetState extends State { ), centerTitle: true, actions: [ - (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 { 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; -// } + // } }