fix scaffold

merge-update-with-lab-changes
Elham Rababh 4 years ago
parent 65cf4316ab
commit ad0c8eaffb

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

Loading…
Cancel
Save