mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-02-23 11:35:26 +00:00
dart fix --apply --code=sized_box_for_whitespace
This commit is contained in:
parent
dccd96844d
commit
b48971f130
3 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ class ConfigCheckboxItem extends StatelessWidget {
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
label != null ? Container(width: labelWidth, child: label) : Container(),
|
label != null ? SizedBox(width: labelWidth, child: label) : Container(),
|
||||||
Expanded(child: Container(padding: EdgeInsets.only(right: 10), child: content)),
|
Expanded(child: Container(padding: EdgeInsets.only(right: 10), child: content)),
|
||||||
checked
|
checked
|
||||||
? Icon(CupertinoIcons.check_mark, color: CupertinoColors.systemBlue.resolveFrom(context))
|
? Icon(CupertinoIcons.check_mark, color: CupertinoColors.systemBlue.resolveFrom(context))
|
||||||
|
|
|
@ -34,7 +34,7 @@ class ConfigItem extends StatelessWidget {
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: crossAxisAlignment,
|
crossAxisAlignment: crossAxisAlignment,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Container(width: labelWidth, child: DefaultTextStyle(style: textStyle, child: Container(child: label))),
|
SizedBox(width: labelWidth, child: DefaultTextStyle(style: textStyle, child: Container(child: label))),
|
||||||
Expanded(child: DefaultTextStyle(style: textStyle, child: Container(child: content))),
|
Expanded(child: DefaultTextStyle(style: textStyle, child: Container(child: content))),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
@ -52,7 +52,7 @@ class ConfigPageItem extends StatelessWidget {
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: crossAxisAlignment,
|
crossAxisAlignment: crossAxisAlignment,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
label != null ? Container(width: labelWidth, child: label) : Container(),
|
label != null ? SizedBox(width: labelWidth, child: label) : Container(),
|
||||||
Expanded(child: Container(padding: EdgeInsets.only(right: 10), child: content)),
|
Expanded(child: Container(padding: EdgeInsets.only(right: 10), child: content)),
|
||||||
disabled
|
disabled
|
||||||
? Container()
|
? Container()
|
||||||
|
|
Loading…
Reference in a new issue