关于“Material Components for Flutter Basics”的评价
1677 条评价
not everything worked. // TODO: Make a collection of cards (102) // Replace this entire method List<Card> _buildGridCards(BuildContext context) { List<Product> products = ProductsRepository.loadProducts(Category.all); if (products == null || products.isEmpty) { return const <Card>[]; } final ThemeData theme = Theme.of(context); final NumberFormat formatter = NumberFormat.simpleCurrency( locale: Localizations.localeOf(context).toString()); return products.map((product) { return Card( clipBehavior: Clip.antiAlias, // TODO: Adjust card heights (103) child: Column( // TODO: Center items on the card (103) crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ AspectRatio( aspectRatio: 18 / 11, child: Image.asset( product.assetName, package: product.assetPackage, // TODO: Adjust the box size (102) fit: BoxFit.fitWidth, ), ), Expanded( child: Padding( padding: EdgeInsets.fromLTRB(16.0, 12.0, 16.0, 8.0), child: Column( // TODO: Align labels to the bottom and center (103) crossAxisAlignment: CrossAxisAlignment.start, // TODO: Change innermost Column (103) children: <Widget>[ // TODO: Handle overflowing labels (103) Text( product.name, style: theme.textTheme.headline6, maxLines: 1, ), SizedBox(height: 8.0), Text( formatter.format(product.price), style: theme.textTheme.subtitle2, ), ], ), ), ), ], ), ); }).toList(); } didn'T work
Michael K. · 已于 about 3 years前审核
PinkFluffyUnicorn T. · 已于 about 3 years前审核
Bao Anh T. · 已于 about 3 years前审核
kanishk s. · 已于 about 3 years前审核
live server doesn't work
DIVYESH G. · 已于 about 3 years前审核
Annwen G. · 已于 about 3 years前审核
Eric T. · 已于 about 3 years前审核
Rahul K. · 已于 about 3 years前审核
Gergely K. · 已于 about 3 years前审核
Paulina W. · 已于 about 3 years前审核
Al W. · 已于 about 3 years前审核
Al W. · 已于 about 3 years前审核
AMOGH P. · 已于 about 3 years前审核
Cody C. · 已于 about 3 years前审核
Lukasz P. · 已于 about 3 years前审核
Ashutosh N. · 已于 about 3 years前审核
Binoy K. · 已于 about 3 years前审核
Luke T. · 已于 about 3 years前审核
Hà Huy H. · 已于 about 3 years前审核
Methods are outdated
Loïc B. · 已于 about 3 years前审核
Clive G. · 已于 about 3 years前审核
Thomas H. · 已于 about 3 years前审核
TARIQ H. · 已于 about 3 years前审核
Laura T. · 已于 about 3 years前审核
Xin T. · 已于 about 3 years前审核
我们无法确保发布的评价来自已购买或已使用产品的消费者。评价未经 Google 核实。