【发布时间】:2022-01-12 19:25:47
【问题描述】:
我想在产品上做一个这个功能,但我不知道怎么做,因为我对颤动太新鲜了......
所以这是我想要的图片
这是我的代码。
child: GridTile(
footer: Container(
color: Colors.white,
child: Row(
children: [
Expanded(
flex: 8,
child: Text(product_name),
),
Text("\$$product_price",
style: const TextStyle(fontWeight: FontWeight.w600)),
TextButton(
onPressed: (){
debugPrint('added to cart');
},
child: Text("ADD TO CARD"),
style: TextButton.styleFrom(
primary: Colors.lightBlue[800],
shadowColor: Colors.deepPurple,
// elevation: 5,
),
),
],
),
),
child: Image.asset(
product_picture,
fit: BoxFit.cover,
),
),
),
),
),
这就是它的外观 How it looks
我将不胜感激!
【问题讨论】:
-
请回答?
标签: flutter flutter-test