toastCardImage method

void toastCardImage()

Implementation

void toastCardImage(){
  MyToast.showCustom(context, Card(
    shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(5),),
    clipBehavior: Clip.antiAliasWithSaveLayer, elevation: 1,
    child: Container(
      padding: EdgeInsets.symmetric(horizontal: 15, vertical: 10),
      child: Row(
        mainAxisSize: MainAxisSize.min,
        children: [
          Image.asset(Img.get('image_shop_5.jpg'),
            height: 40, width: 40,
          ),
          Container(width: 10),
          Column(
            mainAxisSize: MainAxisSize.min,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: <Widget>[
              Text("Seven Belladji", style: MyText.subhead(context)!.copyWith(color: MyColors.grey_90)),
              Text("Added to Cart", style: MyText.caption(context)!.copyWith(color: MyColors.grey_40)),
            ],
          )
        ],
      ),
    ),
  ), duration: Duration(seconds: 3));
}