MarcelGarus / marquee

A Flutter widget that scrolls text infinitely. Provides many customizations including custom scroll directions and velocities, pausing after every round and specifying custom durations and curves for accelerating and decelerating.
MIT License
274 stars 113 forks source link

'fadingEdgeEndFraction' is not visible during round pause #99

Open MKlimentowicz opened 1 month ago

MKlimentowicz commented 1 month ago

Firstly, thank you for this cool package. It saves me a lot of time now! One thing I noticed is that fadingEdgeEndFraction is visible at the beginning but when I set pauseAfterRound it is not visible for that time.

Code to reproduce:

@override
  Widget build(BuildContext context) {
    return SizedBox(
      height: 25,
      child: AutoSizeText(
        "... long text ...",
        minFontSize: 19,
        maxFontSize: 19,
        style: const TextStyle(
          fontSize: 19,
          decoration: TextDecoration.none,
        ),
        overflowReplacement: Marquee(
          text: "... long text ...",
          velocity: 50,
          startAfter: const Duration(seconds: 3),
          blankSpace: 48.0,
          startPadding: 24.0,
          pauseAfterRound: const Duration(seconds: 3),
          fadingEdgeStartFraction: 0.15,
          fadingEdgeEndFraction: 0.15,
          style: const TextStyle(
            fontSize: 19,
            decoration: TextDecoration.none,
          ),
        ),
      ),
    );
  }

My expectation is that it is also visible while it is paused by pauseAfterRound.