小编Jua*_*zco的帖子

如何在模态底部表单中创建 CheckboxListTile?

void _onButtonPressd(BuildContext context) {
  TextEditingController customController = TextEditingController();
  showModalBottomSheet(
      isScrollControlled: true,
      context: context,
      builder: (context) {
        return Container(
            height: 350,
            child: Column(
              children: <Widget>[
                Container(
                  padding: EdgeInsets.only(
                      left: 10.0, right: 10.0, top: 20.0, bottom: 15.0),
                  child: Text(
                    'Meritos',
                    style: TextStyle(
                        color: Colors.black,
                        fontSize: 24,
                        fontFamily: 'Jost',
                        fontWeight: FontWeight.bold),
                  ),
                ),
                Container(
                    height: 80,
                    padding: EdgeInsets.only(left: 25.0, right: 25.0),
                    child: Column(
                      children: <Widget>[
                        CheckboxListTile(
                                *Here where the problem arises*
                        )

                      ],
                    )),
              ],
            ));
      });
}
Run Code Online (Sandbox Code Playgroud)

dart flutter flutter-layout

3
推荐指数
1
解决办法
1827
查看次数

标签 统计

dart ×1

flutter ×1

flutter-layout ×1