MarcelGarus / MarcelGarus/marquee
The following assertion was thrown building Marquee(dirty, dependencies: [MediaQuery, _LocalizationsScope-[GlobalKey#85ab8], DefaultTextStyle, Directionality], state: _MarqueeState#ab262):
- Dominant language
- Dart
- Stars
- 363
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to use the widget marquee and this is the code :
Marquee(
text: 'Some sample text that takes some space.',
style: TextStyle(fontWeight: FontWeight.bold),
scrollAxis: Axis.horizontal,
crossAxisAlignment: CrossAxisAlignment.start,
blankSpace: 20.0,
velocity: 100.0,
pauseAfterRound: Duration(seconds: 1),
showFadingOnlyWhenScrolling: true,
fadingEdgeStartFraction: 0.1,
fadingEdgeEndFraction: 0.1,
numberOfRounds: 3,
startPadding: 10.0,
accelerationDuration: Duration(seconds: 1),
accelerationCurve: Curves.linear,
decelerationDuration: Duration(milliseconds: 500),
decelerationCurve: Curves.easeOut,
);
and this is the error : -
Acceleration and deceleration phase overlap. To fix this, try a combination of these approaches:
* Make the text longer, so there's more room to animate within.
* Shorten the accelerationDuration or decelerationDuration.
* Decrease the velocity, so the duration to animate within is longer.
'package:marquee/marquee.dart':
Failed assertion: line 631 pos 9: '_linearDuration >= Duration.zero'
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the supplied Marquee configuration and start at marquee.dart line 631, where the _linearDuration assertion fails. Trace how the acceleration and deceleration durations are calculated for this input, then verify the result with the same configuration and an appropriate test or reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100