Dashboard

This commit is contained in:
Hillel Coren 2018-09-25 08:24:26 +03:00
parent eeb245ed22
commit 4ed96275bb
1 changed files with 14 additions and 17 deletions

View File

@ -107,31 +107,28 @@ class _DashboardChartState extends State<DashboardChart> {
child: Column(
children: <Widget>[
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(widget.title,
style: Theme.of(context).textTheme.subhead),
Row(
children: <Widget>[
Text(
formatNumber(widget.amount, context,
currencyId: widget.currencyId),
style: Theme.of(context).textTheme.headline),
SizedBox(width: 12.0),
Text(
changeString,
style: TextStyle(
fontSize: 16.0,
color: isIncrease ? Colors.green : Colors.red,
fontWeight: FontWeight.bold,
),
),
],
Text(
formatNumber(widget.amount, context,
currencyId: widget.currencyId),
style: Theme.of(context).textTheme.headline),
SizedBox(width: 12.0),
Text(
changeString,
style: TextStyle(
fontSize: 16.0,
color: isIncrease ? Colors.green : Colors.red,
fontWeight: FontWeight.bold,
),
),
],
crossAxisAlignment: CrossAxisAlignment.start,
),
),
_title != null