mirror of
https://github.com/flutter/samples.git
synced 2026-05-17 20:37:44 +00:00
Flutter 3.29 beta (#2571)
This commit is contained in:
@@ -20,9 +20,7 @@ class ItemTile extends StatelessWidget {
|
||||
child: ListTile(
|
||||
leading: AspectRatio(
|
||||
aspectRatio: 1,
|
||||
child: Container(
|
||||
color: item.color,
|
||||
),
|
||||
child: Container(color: item.color),
|
||||
),
|
||||
title: Text(item.name, style: Theme.of(context).textTheme.titleLarge),
|
||||
trailing: Text('\$ ${(item.price / 100).toStringAsFixed(2)}'),
|
||||
@@ -41,10 +39,7 @@ class LoadingItemTile extends StatelessWidget {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: ListTile(
|
||||
leading: const AspectRatio(
|
||||
aspectRatio: 1,
|
||||
child: Placeholder(),
|
||||
),
|
||||
leading: const AspectRatio(aspectRatio: 1, child: Placeholder()),
|
||||
title: Text('...', style: Theme.of(context).textTheme.titleLarge),
|
||||
trailing: const Text('\$ ...'),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user