marquee icon indicating copy to clipboard operation
marquee copied to clipboard

The movement is strange when there is shadow in text style.

Open eunjin3786 opened this issue 4 years ago • 2 comments
trafficstars

Text does not flow naturally when I run this code

Marquee(
            text: "Hello",
            style: TextStyle(
                color: Colors.green[100],
                fontSize: 100,
                shadows: [
                  Shadow(color: Colors.green[300], blurRadius: 20 / 2),
                  Shadow(color: Colors.green[400], blurRadius: 20),
                  Shadow(color: Colors.green[500], blurRadius: 20 * 3.0)
                ]
            ),
            scrollAxis: Axis.horizontal,
            crossAxisAlignment: CrossAxisAlignment.center,
            blankSpace: 20,
            velocity: 300,
            pauseAfterRound: Duration(seconds: 0),
            startPadding: 10.0,
          );
        }

ezgif-5-d7f7bf2a7b0f

eunjin3786 avatar Dec 07 '20 17:12 eunjin3786

It's strange only on the simulator. It's okay on the device...!!

eunjin3786 avatar Dec 07 '20 17:12 eunjin3786

That is pretty weird. I suppose, rendering text shadows is pretty resource intensive. Although the widget should actually only render the texts as they newly come into view and use cached versions the rest of the time. Since this only affects the simulator, I don't think I'll take any further action. Is this still a priority problem for you?

MarcelGarus avatar Jan 07 '21 11:01 MarcelGarus