Skip to content

Commit 19e5369

Browse files
committed
refactor: add padding and update default height and width of the switch
1 parent 6eab61e commit 19e5369

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/widget/switch.dart

+5-2
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ class SwitchBaseController extends FormFieldController {
242242
Color? inactiveColor;
243243
Color? inactiveThumbColor;
244244
Color? mixedColor;
245-
double? width = 100;
246-
double? height = 40;
245+
double? width = 80;
246+
double? height = 30;
247247

248248
framework.EnsembleAction? onChange;
249249
}
@@ -316,6 +316,9 @@ class TripleStateSwitch extends StatelessWidget {
316316
200,
317317
),
318318
),
319+
margin: const EdgeInsets.symmetric(
320+
horizontal: 8,
321+
),
319322
padding: const EdgeInsets.symmetric(
320323
horizontal: 1,
321324
vertical: 2,

0 commit comments

Comments
 (0)