Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Animation avec Flutter
Search
Agnaramon Boris-Carnot
August 23, 2020
Programming
0
88
Animation avec Flutter
Session organisée au sein de notre communauté locale Dart & Flutter
Agnaramon Boris-Carnot
August 23, 2020
Tweet
Share
More Decks by Agnaramon Boris-Carnot
See All by Agnaramon Boris-Carnot
Créer des vues personnalisées avec Flutter
agnaramonboris
0
150
Notre première interface graphique avec Flutter
agnaramonboris
2
380
Introduction à Dart & Flutter : par où commencer ?
agnaramonboris
2
160
Other Decks in Programming
See All in Programming
大規模Reactアプリのリアーキテクチャ~8万行のTanStack Query移行の軌跡~
kj455
4
1k
スクラムガイドのスプリントレトロスペクティブを改めて読みかえしてみた / Re-reading the Sprint Retrospective Section in the Scrum Guide
mackey0225
3
490
2 週間で Twitter Bot を作ってみた
contour_gara
0
780
検証も兼ねて個人開発でHonoとかと向き合った話
hanetsuki
1
1.3k
SwiftUIで使いやすいToastの作り方 / How to build a Toast system which is easy to use in SwiftUI
lovee
3
170
Introducing Kotlin Multiplatform in an existing mobile app - Workshop Edition | AndroidMakers Paris
prof18
0
160
『Railsオワコン』と言われる時代に、なぜブルーモ証券はRailsを選ぶのか
free_world21
1
370
Go製Webアプリケーションのエラーとの向き合い方大全、あるいはやっぱりスタックトレース欲しいやん / Kyoto.go #50
utgwkk
6
1.8k
Hanami and htmx
bkuhlmann
0
230
新宿ダンジョンを可視化してみた
satoshi7190
3
400
VS Code をプロダクトにどう取り込むか
onomax
1
740
Implementing Design Systems in Swift
seyfoyun
2
480
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
21
1.6k
Building Your Own Lightsaber
phodgson
100
5.7k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
14
8.3k
Ruby is Unlike a Banana
tanoku
96
10k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
GraphQLの誤解/rethinking-graphql
sonatard
56
9.3k
Pencils Down: Stop Designing & Start Developing
hursman
117
11k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
221
21k
A better future with KSS
kneath
231
16k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
14
1.5k
What the flash - Photography Introduction
edds
64
11k
Into the Great Unknown - MozCon
thekraken
15
1k
Transcript
Animation avec Flutter @improvissus @agnamc9
Animation avec Flutter
Animation avec Flutter Implicit Animation Explicit Animation
Animation avec Flutter Implicit Animation Explicit Animation
Animation avec Flutter Implicit Animation https://flutter.dev/docs/codelabs/implicit-animations
Implicit Animation Implicit Animation : Built-In • Nomenclature : Animated(Foo)
Implicit Animation : Built-In Animated(Foo) • Animated(Container) • Animated(Opacity) •
Animated(Positioned) • ...
Implicit Animation : Built-In Animated(Foo) - duration: Durée de l’animation
- curve (option): Taux de change de l’animation : accéléré, décéléré, etc.
Implicit Animation : Built-In AnimatedContainer( width: isBigger ? 300 :
100, height: isBigger ? 300 : 100, color: Colors.blue, duration: Duration(seconds: 1), ),
Implicit Animation : Built-In Curve Examples https://api.flutter.dev/flutter/animation/Curves-class.html
Implicit Animation
Implicit Animation Animated(Foo) ???
Implicit Animation Animated(Foo) ???
Implicit Animation : Custom TweenAnimationBuilder - duration: Durée - tween:
Intervalle de valeur - builder: Appelé à chaque mise à jour de l’animation - curve (option)
Implicit Animation : Custom TweenAnimationBuilder( duration: Duration(seconds: 1), tween: Tween<double>(begin:
0.0, end: 2 * math.pi), builder: (context, value, child) { return Transform.rotate( angle: value, child: FlutterLogo() ); }, )
Animation avec Flutter
Animation avec Flutter
Animation avec Flutter Implicit Animation [Limites] • Unidirectionnel • Aucun
contrôle
Animation avec Flutter Implicit Animation Explicit Animation
Animation avec Flutter Explicit Animation https://flutter.dev/docs/codelabs/explicit-animations
Explicit Animation Explicit Animation : Built-In • Nomenclature : (Foo)Transition
Explicit Animation : Built-In (Foo)Transition • (Align)Transition • (Rotation)Transition •
(Positioned)Transition • ...
Explicit Animation : Built-In RotationTransition( child: FlutterLogo( size: 60, ),
)
Explicit Animation : Built-In RotationTransition( child: FlutterLogo( size: 60, ),
turns: // ???????, )
Explicit Animation : Built-In AnimationController https://api.flutter.dev/flutter/animation/AnimationController-class.html
Explicit Animation : Built-In class _AnimationTestState extends State<AnimationTest> with SingleTickerProviderStateMixin
{ AnimationController _animationController; @override void initState() { super.initState(); _animationController = AnimationController(duration: Duration(seconds: 2), vsync: this) ..repeat(); } @override void dispose() { _animationController.dispose(); super.dispose(); } RotationTransition( child: FlutterLogo( size: 60, ), turns: _animationController )
Explicit Animation : Built-In Column( children: [ RotationTransition( child: FlutterLogo(
size: 60, ), turns: _animationController, ), MaterialButton( child: Text('Click'), onPressed: () { if (_animationController.isAnimating) { _animationController.stop(); } else { _animationController.repeat(); } }, ) ], )
Explicit Animation (Foo)Transition ???
Explicit Animation (Foo)Transition ???
Explicit Animation : Custom AnimatedBuilder
Explicit Animation : Custom AnimatedBuilder( animation: _animationController, builder: (context, child)
{ return Transform.rotate( angle: _animationController.value * 2 * math.pi, child: Container( alignment: Alignment.center, width: 200, height: 200, color: Colors.blue, child: Text( 'Spin !’, style: TextStyle(fontSize: 20), ), ), ); }, )
En savoir plus Overview https://flutter.dev/docs/development/ui/animations Hero Animation https://flutter.dev/docs/development/ui/animations/hero-animations Staggered Animation
https://flutter.dev/docs/development/ui/animations/staggered-animations Implementing Complex UI with Flutter - Marcin Szałek https://www.youtube.com/watch?v=FCyoHclCqc8 Flutter Animation Sample https://flutter.github.io/samples/animations.html
Merci @improvissus @agnamc9