Skip to content

Commit 0c1ed75

Browse files
authored
Remove newline (#121090)
* remove newline * update crswap * add const constructor * update const
1 parent 0f69bc7 commit 0c1ed75

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

dev/tools/gen_defaults/lib/checkbox_template.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ class _${blockName}DefaultsM3 extends CheckboxThemeData {
112112
VisualDensity get visualDensity => _theme.visualDensity;
113113
114114
@override
115-
OutlinedBorder get shape => RoundedRectangleBorder(
116-
borderRadius: BorderRadius.circular(${tokens['md.comp.checkbox.unselected.outline.width']}),
115+
OutlinedBorder get shape => const RoundedRectangleBorder(
116+
borderRadius: BorderRadius.all(Radius.circular(${tokens['md.comp.checkbox.unselected.outline.width']})),
117117
);
118118
}
119119
''';

packages/flutter/lib/src/material/checkbox.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,8 @@ class _CheckboxDefaultsM3 extends CheckboxThemeData {
874874
VisualDensity get visualDensity => _theme.visualDensity;
875875

876876
@override
877-
OutlinedBorder get shape => RoundedRectangleBorder(
878-
borderRadius: BorderRadius.circular(2.0),
877+
OutlinedBorder get shape => const RoundedRectangleBorder(
878+
borderRadius: BorderRadius.all(Radius.circular(2.0)),
879879
);
880880
}
881881

packages/flutter/test/material/checkbox_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,6 @@ void main() {
17481748
return Checkbox(
17491749
value: false,
17501750
onChanged: (bool? newValue) {},
1751-
17521751
);
17531752
}),
17541753
),

0 commit comments

Comments
 (0)