Skip to content

[Android, Engine Issue] Android Platform에서 위젯의 투명도(Opacity)가 조절이 되지 않는 문제 #68

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

Closed
emotionalboySY opened this issue Mar 30, 2023 · 5 comments

Comments

@emotionalboySY
Copy link

emotionalboySY commented Mar 30, 2023

항상 고생하십니다.

main page에서 naver map widget이 있는 페이지로 get.toNamed가 호출되어 페이지를 이동하도록 구성되어 있습니다.

여기서 뒤로 가기 버튼을 누르면 Get.back()가 호출되며 돌아가도록 되어 있는데,

Naver Map widget만 늦게 사라지는 문제가 있습니다. 이 경우 어느 부분을 수정해야 하는지 여쭤볼 수 있을까요?

flutter version: 3.7.8
dart version: 2.19.5
plugin version: 1.0.0 dev.9
Android version: 13(API Level 33)

@emotionalboySY
Copy link
Author

Screen_Recording_20230330_113854.mp4

해당 이슈 관련 화면 녹화 영상을 첨부드립니다.

@note11g
Copy link
Owner

note11g commented Mar 30, 2023

안녕하세요. 먼저, 이슈를 제보주셔서 감사드립니다.

해당 부분은 인지하고 있는 부분이었으나, flutter Hybrid Composition 자체의 이슈로 알고 있습니다.

아직 분석중에 있는 부분이니, 조금만 기다려주시면 감사드리겠습니다. 감사합니다.

@emotionalboySY
Copy link
Author

감사합니다 :) 추후 업데이트되면 알려주시면 감사드리겠습니다

@note11g
Copy link
Owner

note11g commented Mar 30, 2023

관련 이슈 : flutter/flutter#118498

@note11g
Copy link
Owner

note11g commented Jan 8, 2024

해당 부분은 hybrid composition이 android 플랫폼에서는 opacity 조절을 지원하지 않아 발생하는 현상입니다.
(관련 이슈 : flutter/flutter#93757)

#152 이슈에 대략적인 내용이 정리되어 있습니다.

Transition에 한해서 발생하는 현상은 아니므로, 제목을 변경하겠습니다.
(NaverMap이 있는 화면에서 뒤로 가기 버튼이 눌렸을 때, NaverMap widget의 애니메이션 지연 문제
-> [Android, Engine Issue] Android Platform에서 위젯의 투명도(Opacity)가 조절이 되지 않는 문제)

Opacity Widget을 부모 위젯으로 사용하여, 아래 코드처럼 해당 현상을 쉽게 재현할 수 있습니다.
(Android 11 이상)

@override
Widget build(BuildContext context) {
  return Scaffold(
    body: Opacity(
      opacity: 0.1,
      child: NaverMap(),
    ),
  );
}

@note11g note11g changed the title NaverMap이 있는 화면에서 뒤로 가기 버튼이 눌렸을 때, NaverMap widget의 애니메이션 지연 문제 [Android, Engine Issue] Android Platform에서 위젯의 투명도(Opacity)가 조절이 되지 않는 문제 Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants