kherel / animated_theme_switcher

Flutter animated theme switcher
https://pub.dev/packages/animated_theme_switcher
MIT License
278 stars 28 forks source link

Not working on Flutter web 2.0 from Mobile #28

Open Nicola-Cestaro opened 3 years ago

Nicola-Cestaro commented 3 years ago

On the other hand, if I request the desktop mode on the mobile browser it works perfectly. Is there a workaround to force the desktop mode on mobile?

leynier commented 3 years ago

Hi, in this issue https://github.com/kherel/animated_theme_switcher/issues/23#issuecomment-796879448 explain how to do it. Flutter on the web has two rendering modes, one using canvas kit and the other using HTML DOM, the canvas kit is used on large screens such as desktops and rendering with the HTML DOM on small screens such as mobiles. But you can force during compilation to use one of the rendering modes for both cases.