Repository: flutter
Issue: [BUG] SemanticsNode tried to set a non-finite rect
Labels: framework,a: animation,f: material design,a: accessibility,a: error message,has reproducible steps,found in release: 3.7,found in release: 3.8,team-design,triaged-design

Hello, 
i'm receiving the following error when attempting to animate a button inside a CustomScrollView with slivers.

```======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
SemanticsNode#5(Rect.fromLTRB(1.0, 1.0, 392.0, 18.0), tags: [RenderViewport.twoPane], label: "hello", textDirection: ltr) (with SemanticsOwner#0852b) tried to set a non-finite rect.
'package:flutter/src/semantics/semantics.dart':
Failed assertion: line 1605 pos 12: 'value.isFinite'


Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack: 
#2      SemanticsNode.rect= (package:flutter/src/semantics/semantics.dart:1605:12)
#3      _SwitchableSemanticsFragment.compileChildren (package:flutter/src/rendering/object.dart:4223:11)
#4      _SwitchableSemanticsFragment.compileChildren (package:flutter/src/rendering/object.dart:4235:16)
#5      RenderObject._updateSemantics (package:flutter/src/rendering/object.dart:3159:25)
#6      PipelineOwner.flushSemantics (package:flutter/src/rendering/object.dart:1221:16)
#7      RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:518:21)
#8      WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:884:13)
#9      RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:378:5)
#10     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1175:15)
#11     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1104:9)
#12     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1015:5)
#13     _invoke (dart:ui/hooks.dart:148:13)
#14     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:318:5)
#15     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 2 frames from class _AssertionError)
====================================================================================================
```



Flutter doctor output:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.2, on macOS 12.6.1 21G217 darwin-arm, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.74.3)
[✓] Connected device (3 available)
[✓] HTTP Host Availability



• No issues found!

## Steps to Reproduce
I've created a gist here that reproduces the exception:

https://gist.github.com/hhoang/2c54c8b13d9a88d0c74972cdb05869ea

Screen recording of the issue:
https://user-images.githubusercontent.com/482679/222529254-9bc8b02d-539e-4af0-9538-2c9b93c6351a.mov