File tree 1 file changed +7
-4
lines changed
packages/flutter/lib/src/cupertino
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -491,15 +491,18 @@ class CupertinoSlidingSegmentedControl<T extends Object> extends StatefulWidget
491
491
/// Defaults to `EdgeInsets.symmetric(vertical: 2, horizontal: 3)` .
492
492
final EdgeInsetsGeometry padding;
493
493
494
- /// Determines whether segments in the segmented control show selected state.
494
+ /// Determines whether segments provide only momentary feedback when pressed
495
+ /// rather than maintaining a persistent selected state.
495
496
///
496
- /// If true, segments in the control don’t show selected state and
497
- /// don’t update the value of selectedSegmentIndex after tracking ends .
497
+ /// When true, segments behave more like buttons that trigger actions rather
498
+ /// than options that can be selected and remain in that state .
498
499
///
499
500
/// Defaults to false.
500
501
///
501
502
/// {@tool dartpad}
502
- /// This example shows a [CupertinoSlidingSegmentedControl] with [isMomentary] set to true.
503
+ /// This example shows a [CupertinoSlidingSegmentedControl] with [isMomentary] set
504
+ /// to true, providing feedback to the user when the segment is selected with a
505
+ /// text scaling effect.
503
506
///
504
507
/// ** See code in examples/api/lib/cupertino/segmented_control/cupertino_sliding_segmented_control.1.dart **
505
508
/// {@end-tool}
You can’t perform that action at this time.
0 commit comments