File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/material_leap/lib/src/widgets Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class ExactSlider extends StatefulWidget {
10
10
final Widget ? header, leading, bottom;
11
11
final double defaultValue, min, max;
12
12
final double ? value;
13
+ final double ? headerWidth;
13
14
final OnValueChanged ? onChanged, onChangeEnd;
14
15
final Color ? color, thumbColor;
15
16
final EdgeInsets ? contentPadding;
@@ -30,6 +31,7 @@ class ExactSlider extends StatefulWidget {
30
31
this .onChanged,
31
32
this .thumbColor,
32
33
this .contentPadding,
34
+ this .headerWidth,
33
35
});
34
36
35
37
ExactSlider .srgb ({
@@ -48,6 +50,7 @@ class ExactSlider extends StatefulWidget {
48
50
this .onChanged,
49
51
required SRGBColor thumbColor,
50
52
this .contentPadding,
53
+ this .headerWidth,
51
54
}) : color = color.toColor (),
52
55
thumbColor = thumbColor.toColor ();
53
56
@@ -172,7 +175,7 @@ class _ExactSliderState extends State<ExactSlider> {
172
175
title: Row (
173
176
children: [
174
177
if (header != null ) ...[
175
- SizedBox (width: 200 , child: header),
178
+ SizedBox (width: widget.headerWidth ?? 180 , child: header),
176
179
const SizedBox (width: 16 ),
177
180
],
178
181
ConstrainedBox (
You can’t perform that action at this time.
0 commit comments