Skip to content

Commit

Permalink
fix icon not centered
Browse files Browse the repository at this point in the history
  • Loading branch information
wuuzw committed Jan 20, 2021
1 parent 845c93c commit 70e4bea
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/app/shared/widgets/item_tile/item_tile.dart
Expand Up @@ -51,12 +51,15 @@ class ItemTile extends StatelessWidget {

Widget _buildLeading(int points) {
return points == null
? Icon(
MdiIcons.briefcase,
color: Colors.orange,
? Container(
height: double.infinity,
child: Icon(
MdiIcons.briefcase,
color: Colors.orange,
),
)
: Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'$points',
Expand Down

0 comments on commit 70e4bea

Please sign in to comment.