I have a problem when I want to display a double value in flutter
. I use Text
widget and I need to transform my double 0.00 in a string to display it in the widget Text. The problem is it returns "null".
I want to display "BALANCE: 0.00 €", I have the 0.00 stored in double var but I can't display the value with Text Widget. Here is my code :
Container(
child: Text(
"BALANCE: "+globals.balance.toString()+" €",
style: TextStyle(
fontSize: 15.0,
fontWeight: FontWeight.w500,
color: Colors.white),
),
),
Result is : BALANCE : null €