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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Agnaramon Boris-Carnot
August 23, 2020
Programming
0
100
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
210
Notre première interface graphique avec Flutter
agnaramonboris
2
450
Introduction à Dart & Flutter : par où commencer ?
agnaramonboris
2
230
Other Decks in Programming
See All in Programming
Claude Codeログ基盤の構築
giginet
PRO
7
3.4k
Ruby and LLM Ecosystem 2nd
koic
1
1k
Claude Codeセッション現状確認 2026福岡 / fukuoka-aicoding-00-beacon
monochromegane
4
440
LangChain4jとは一味違うLangChain4j-CDI
kazumura
1
200
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
2.5k
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
140
RAGでハマりがちな"Excelの罠"を、データの構造化で突破する
harumiweb
9
2.9k
脱 雰囲気実装!AgentCoreを良い感じにWEBアプリケーションに組み込むために
takuyay0ne
3
300
CSC307 Lecture 14
javiergs
PRO
0
480
GoのDB アクセスにおける 「型安全」と「柔軟性」の両立 - Bob という選択肢
tak848
0
220
条件判定に名前、つけてますか? #phperkaigi #c
77web
1
250
「接続」—パフォーマンスチューニングの最後の一手 〜点と点を結ぶ、その一瞬のために〜
kentaroutakeda
2
840
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.5k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
790
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
220
Agile that works and the tools we love
rasmusluckow
331
21k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
190
Why Our Code Smells
bkeepers
PRO
340
58k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
760
Visualization
eitanlees
150
17k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.7k
Done Done
chrislema
186
16k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
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