我是Flutter的新手,正在练习制作简单的应用程序。但是现在,我可以插入一行条件语句,但我想添加if语句,以便我可以添加更多语句。我该怎么做?这是我的代码,请看一下。当达到目标金额时,我想要添加更多颜色color: _moneyCounter > 1000 ? Colors.green : Colors.red,
Expanded(
child: Center(
child: Text(
'\USD $_moneyCounter',
style: TextStyle(
color: _moneyCounter > 1000 ? Colors.green : Colors.red,
fontSize: 40.0,
),
),
),
),