File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
packages/flutter/lib/src/cupertino Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,11 @@ class _SegmentState<T> extends State<_Segment<T>> with TickerProviderStateMixin<
177
177
// the same and will always be greater than equal to that of the
178
178
// visible child (at index 0), to keep the size of the entire
179
179
// SegmentedControl widget consistent throughout the animation.
180
- DefaultTextStyle .merge (
181
- style: const TextStyle (fontWeight: FontWeight .w500),
182
- child: widget.child,
180
+ Offstage (
181
+ child: DefaultTextStyle .merge (
182
+ style: const TextStyle (fontWeight: FontWeight .w500),
183
+ child: widget.child,
184
+ ),
183
185
),
184
186
],
185
187
),
@@ -1094,8 +1096,7 @@ class _RenderSegmentedControl<T extends Object> extends RenderBox
1094
1096
1095
1097
final _SegmentedControlContainerBoxParentData childParentData = selectedChild.parentData! as _SegmentedControlContainerBoxParentData ;
1096
1098
final Rect newThumbRect = _kThumbInsets.inflateRect (childParentData.offset & selectedChild.size);
1097
- print ('selectedChild.size: ${selectedChild .size }' );
1098
- print ('newThumbRect.width: ${newThumbRect .width }' );
1099
+
1099
1100
// Update thumb animation's tween, in case the end rect changed (e.g., a
1100
1101
// new segment is added during the animation).
1101
1102
if (state.thumbController.isAnimating) {
You can’t perform that action at this time.
0 commit comments