You can use it like this:
你可以像这样使用它:
padding: isLogin
? EdgeInsets.only(bottom: 58.0)
: EdgeInsets.only(bottom: 10.0),
Edit:
编辑:
or just remove const
like this.
或者像这样删除const
。
padding: EdgeInsets.only(bottom: isLogin ? 58.0 : 10.0),
You can read the usage of const
fromhere .
您可以从这里阅读const
的用法。