Skip to content

Commit

Permalink
some changes to UI
Browse files Browse the repository at this point in the history
  • Loading branch information
HPatel000 committed Jun 6, 2020
1 parent 47358b4 commit 20a1edf
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 34 deletions.
3 changes: 2 additions & 1 deletion lib/widgets/data_col.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ class DataCol extends StatelessWidget {
children: <Widget>[
Text(
title,
overflow: TextOverflow.visible,
style: TextStyle(
fontSize: 10.0,
fontSize: 9.0,
color: Colors.white54,
),
),
Expand Down
76 changes: 43 additions & 33 deletions lib/widgets/list_tile_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,48 +33,58 @@ class ListTileData extends StatelessWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Container(
width: 95.0,
child: Text(
name,
overflow: TextOverflow.visible,
style: TextStyle(
fontSize: 14.0,
color: Colors.white,
Flexible(
flex: 2,
fit: FlexFit.tight,
child: Container(
child: Text(
name,
overflow: TextOverflow.visible,
style: TextStyle(
fontSize: 14.0,
color: Colors.white,
),
),
),
),
SizedBox(
width: 8.0,
),
DataCol(
data: confirmed,
title: 'confirmed',
colour: Colors.blue,
),
SizedBox(
width: 5.0,
),
DataCol(
data: active,
title: 'active',
colour: Colors.yellow,
),
SizedBox(
width: 5.0,
Flexible(
flex: 1,
fit: FlexFit.tight,
child: DataCol(
data: confirmed,
title: 'confirmed',
colour: Colors.blue,
),
),
DataCol(
data: recovered,
title: 'recovered',
colour: Colors.green,
Flexible(
flex: 1,
fit: FlexFit.tight,
child: DataCol(
data: active,
title: 'active',
colour: Colors.yellow,
),
),
SizedBox(
width: 5.0,
Flexible(
flex: 1,
fit: FlexFit.tight,
child: DataCol(
data: recovered,
title: 'recovered',
colour: Colors.green,
),
),
DataCol(
data: deaths,
title: 'deaths',
colour: Colors.red,
Flexible(
flex: 1,
fit: FlexFit.tight,
child: DataCol(
data: deaths,
title: 'deaths',
colour: Colors.red,
),
),
],
),
Expand Down

0 comments on commit 20a1edf

Please sign in to comment.