[플러터] Apple Watch의 호흡 앱 애니메이션을 만듭니다.
이미 여름이군요. 더운
시작하기 전에
호흡 앱을 사용하고 계십니까?
스트레스가 쌓일 때 매우 추천합니다.
이런 형태의 앱이지만,

Use the Breathe app htps : // 꼬리 rt. 아 ぇ. 코 m / 엔우 s / HT206999
이 호흡 앱의 애니메이션을 Flutter로 해 보겠습니다.
코드
CustomPaint 위젯을 사용합니다.
CustomPaint 중에는 Painter라는 것이 필요합니다.

Painter

애니메이션
애니메이션은 CurvedAnimation을 활용합니다.
Mixin으로서 SingleTickerProviderStateMixin을 State Class에 붙입니다.
애니메이션을 사용하고 싶다면 필요한 것입니다.
먼저 애니메이션 컨트롤러를 선언합니다.

그리고, initState 의 메소드안에 인스턴스화합니다.

이번에 사용한 CurvedAnimation입니다.

결과
1
2
3
4



Reference
이 문제에 관하여([플러터] Apple Watch의 호흡 앱 애니메이션을 만듭니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/Dreamwalker/items/ef287d627c4d5a702153
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
CustomPaint 위젯을 사용합니다.
CustomPaint 중에는 Painter라는 것이 필요합니다.

Painter

애니메이션
애니메이션은 CurvedAnimation을 활용합니다.
Mixin으로서 SingleTickerProviderStateMixin을 State Class에 붙입니다.
애니메이션을 사용하고 싶다면 필요한 것입니다.
먼저 애니메이션 컨트롤러를 선언합니다.

그리고, initState 의 메소드안에 인스턴스화합니다.

이번에 사용한 CurvedAnimation입니다.

결과
1
2
3
4



Reference
이 문제에 관하여([플러터] Apple Watch의 호흡 앱 애니메이션을 만듭니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/Dreamwalker/items/ef287d627c4d5a702153
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Reference
이 문제에 관하여([플러터] Apple Watch의 호흡 앱 애니메이션을 만듭니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/Dreamwalker/items/ef287d627c4d5a702153텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)