HeavenOSK / flutter_swipable_stack

A widget for stacking cards, which users can swipe horizontally and vertically with beautiful animations like Tinder UI.
https://pub.dev/packages/swipable_stack
MIT License
117 stars 48 forks source link

Widget breaks when card gets dragged to the left: "simulationDuration > Duration.zero is not true" #52

Closed PureTryOut closed 2 years ago

PureTryOut commented 2 years ago

Whenever I drag a card to the left the entire widget breaks with the following:

I/flutter ( 9115): {exception: _AssertionError, message: 'package:flutter/src/animation/animation_controller.dart': Failed assertion: line 610 pos 12: 'simulationDuration > Duration.zero': is not true.}

Another exception was thrown: 'package:flutter/src/animation/animation_controller.dart': Failed assertion: line 610 pos 12: 'simulationDuration > Duration.zero': is not true.

This doesn't happen in any other direction.

Once it's broken other errors start appearing:

══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during performLayout():
'package:flutter/src/rendering/object.dart': Failed assertion: line 1840 pos 12:
'!_debugDoingThisLayout': is not true.

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:
  Stack
  Stack:file:///home/bart/.pub-cache/hosted/pub.dartlang.org/swipable_stack-1.3.0/lib/src/swipable_stack.dart:386:18
HeavenOSK commented 2 years ago

Sorry, I couldn't reproduce this problem 🙏