mrcendre / motion

A Flutter plugin to apply a gyroscope-based motion effect to widgets.
GNU General Public License v3.0
39 stars 15 forks source link

Android vs IOS Elevated param missmatch #15

Open Flucadetena opened 1 year ago

Flucadetena commented 1 year ago

Hi, great package. I've implemented it on android and IOS and for some reason the movement in android is way less than in IOS, using the same elevation.

Motion.elevated(
      elevation: GetPlatform.isAndroid ?  200 : 70,
      shadow: false,
      filterQuality: FilterQuality.high,
      glare: false,
      controller: MotionController(damping: null),
      child: SizedBox(
        width: MediaQuery.of(context).size.width - 100,
        child: Image.asset(
          getImg(name: 'test.png'),
        ),
      ),
    );

This is the config Im using now to get more or less the same movement in both. I'm not sure if this is the expected behaviour or not.

If I can helo with anything let me now. Thanks.