【发布时间】:2021-07-14 14:59:23
【问题描述】:
我想在这里使用变量:
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(
//here
'Minimum order amount is' '${PriceConverter.convertPrice(context, Provider.of<SplashProvider>(context, listen: false).configModel
.minimumOrderValue)}, //here you have ${PriceConverter.convertPrice(context, _itemPrice)}//here in your cart, please add more item.',
), backgroundColor: Colors.red));
就像我使用按钮:
CustomButton(btnTxt: getTranslated('place_order', context),
【问题讨论】: