【发布时间】:2022-08-24 19:16:15
【问题描述】:
- 需要删除扩展磁贴小部件列表项的填充
请找到实际结果的图像。预期结果应删除顶部底部空间
这是任何人都可以帮助我的代码:
Theme( data: theme, child: ListTileTheme( contentPadding: EdgeInsets.all(0), dense: true, child: ExpansionTile( title: Row( mainAxisAlignment: MainAxisAlignment.start, children: [ GFCheckbox( inactiveBgColor: kColorPrimaryDark, inactiveBorderColor: Colors.white, customBgColor: kColorPrimaryDark, size: 15, activeIcon: const Icon( Icons.check, size: 15, color: Colors.white, ), activeBgColor: kColorPrimaryDark, onChanged: (value) { setState(() { isChecked = value; }); }, value: isChecked, inactiveIcon: null, ), SizedBox( width: 5, ), textWidget(color: Colors.white, size: 12, text: root.title), ], ), key: PageStorageKey<DataList>(root), children: root.children.map(_buildTiles).toList(), ), ), );
标签: flutter dart flutter-widget