Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android vs IOS Elevated param missmatch #15

Open
Flucadetena opened this issue Sep 6, 2023 · 0 comments
Open

Android vs IOS Elevated param missmatch #15

Flucadetena opened this issue Sep 6, 2023 · 0 comments

Comments

@Flucadetena
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant