Skip to content

Commit 24270a6

Browse files
committed
Remove print statements
1 parent b3f01fc commit 24270a6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/flutter/lib/src/cupertino/sliding_segmented_control.dart

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,11 @@ class _SegmentState<T> extends State<_Segment<T>> with TickerProviderStateMixin<
177177
// the same and will always be greater than equal to that of the
178178
// visible child (at index 0), to keep the size of the entire
179179
// 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+
),
183185
),
184186
],
185187
),
@@ -1094,8 +1096,7 @@ class _RenderSegmentedControl<T extends Object> extends RenderBox
10941096

10951097
final _SegmentedControlContainerBoxParentData childParentData = selectedChild.parentData! as _SegmentedControlContainerBoxParentData;
10961098
final Rect newThumbRect = _kThumbInsets.inflateRect(childParentData.offset & selectedChild.size);
1097-
print('selectedChild.size: ${selectedChild.size}');
1098-
print('newThumbRect.width: ${newThumbRect.width}');
1099+
10991100
// Update thumb animation's tween, in case the end rect changed (e.g., a
11001101
// new segment is added during the animation).
11011102
if (state.thumbController.isAnimating) {

0 commit comments

Comments
 (0)