Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 tabview: Failed assertion: line 479 pos 12: '(a.maxWidth.isFinite && b.maxWidth.isFinite) || (a.maxWidth == double.infinity && b.maxWidth == double.infinity)' #430

Closed
jonahzheng opened this issue Jul 17, 2022 · 0 comments · Fixed by #469
Labels
bug Something isn't working

Comments

@jonahzheng
Copy link

======== Exception caught by widgets library =======================================================
The following assertion was thrown building AnimatedContainer-[<Instance of 'Tab'>](duration: 167ms, BoxConstraints(w=240.0, 0.0<=h<=Infinity), clipBehavior: Clip.none, dirty, state: _AnimatedContainerState#eb24a(ticker active, BoxConstraintsTween(BoxConstraints(unconstrained) → BoxConstraints(w=240.0, 0.0<=h<=Infinity)))):
Cannot interpolate between finite constraints and unbounded constraints.
'package:flutter/src/rendering/box.dart':
Failed assertion: line 479 pos 12: '(a.maxWidth.isFinite && b.maxWidth.isFinite) || (a.maxWidth == double.infinity && b.maxWidth == double.infinity)'


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

The relevant error-causing widget was: 
  TabView TabView:file:///D:/flutter_prj/fluent_ui/example/lib/screens/navigation/tab_view.dart:121:18
When the exception was thrown, this was the stack: 
#2      BoxConstraints.lerp (package:flutter/src/rendering/box.dart:479:12)
#3      BoxConstraintsTween.lerp (package:flutter/src/widgets/implicit_animations.dart:43:51)
#4      Tween.transform (package:flutter/src/animation/tween.dart:327:12)
#5      Animatable.evaluate (package:flutter/src/animation/tween.dart:53:46)
#6      _AnimatedContainerState.build (package:flutter/src/widgets/implicit_animations.dart:760:34)
#7      StatefulElement.build (package:flutter/src/widgets/framework.dart:4919:27)
#8      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4806:15)
#9      StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4977:11)
#10     Element.rebuild (package:flutter/src/widgets/framework.dart:4529:5)
#11     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2659:19)
#12     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:891:21)
#13     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:370:5)
#14     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1146:15)
#15     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1083:9)
#16     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:997:5)
#20     _invoke (dart:ui/hooks.dart:151:10)
#21     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#22     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 5 frames from class _AssertionError and dart:async)
====================================================================================================

0718

flutter 3.0

version: master

@jonahzheng jonahzheng changed the title 🐛 🐛 tabview: Failed assertion: line 479 pos 12: '(a.maxWidth.isFinite && b.maxWidth.isFinite) || (a.maxWidth == double.infinity && b.maxWidth == double.infinity)' Jul 17, 2022
@bdlukaa bdlukaa added the bug Something isn't working label Jul 17, 2022
@bdlukaa bdlukaa mentioned this issue Aug 14, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants