-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: solvedIssue is closed as solvedIssue is closed as solvedteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Use case
It is possible to set the conditions under which the value indicator on a Slider will be shown by setting showValueIndicator in SliderTheme. However, Slider itself is lacking the showValueIndicator property.
When a user wants to override the showValueIndicator for a specific Slider, they have to wrap it into SliderTheme to achieve the desired behavior.
SliderTheme(
data: SliderThemeData(
showValueIndicator: ShowValueIndicator.alwaysVisible,
),
child: Slider(
value: 0.5,
label: '0.5',
onChanged: (double value) {},
),
),Proposal
Add Slider.showValueIndicator property to allow user to set the conditions under which the value indicator will be shown for a specific Slider.
Slider(
value: 0.5,
label: '0.5',
onChanged: (double value) {},
mouseCursor: SystemMouseCursors.click,
showValueIndicator: ShowValueIndicator.alwaysVisible,
)
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: solvedIssue is closed as solvedIssue is closed as solvedteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Type
Projects
Status
Done (PR merged)