相关疑难解决方法(0)

如何删除RadioListTile上的内部填充,以便可以连续使用3个RadioListTiles?

我对Flutter和Dart很陌生,对于这个特定主题,我似乎找不到任何提示。我正在尝试将3 RadioListTiles放入Row这样:

Row(
        children: [
          Expanded(
            child:RadioListTile<GoalSelection>(
              title: Text(
                'Net',
                style: Theme.of(context).textTheme.body1,
              ),
              value: GoalSelection.net,
              groupValue: _goalSelection,
              onChanged: (GoalSelection value) {
                setState(() {
                  _goalSelection = value;
                });
              },
            ),
          ),
          Expanded(
            child: RadioListTile<GoalSelection>(
              title: Text(
                'Gross',
                style: Theme.of(context).textTheme.body1,
              ),
              value: GoalSelection.gross,
              groupValue: _goalSelection,
              onChanged: (GoalSelection value) {
                setState(() {
                  _goalSelection = value;
                });
              },
            ),
          ),
          Expanded(
            child: RadioListTile<GoalSelection>(
              title: Text(
                'Salary',
                style: Theme.of(context).textTheme.body1,
              ),
              value: GoalSelection.salary,
              groupValue: _goalSelection,
              onChanged: (GoalSelection value) {
                setState(() {
                  _goalSelection = …
Run Code Online (Sandbox Code Playgroud)

dart flutter flutter-layout

6
推荐指数
4
解决办法
1534
查看次数

标签 统计

dart ×1

flutter ×1

flutter-layout ×1