From 9be1b86e7e2ff4fe9e69c93274a9b7a5dc99ddb0 Mon Sep 17 00:00:00 2001 From: Umberto Sonnino Date: Wed, 3 Apr 2019 09:28:48 +0200 Subject: [PATCH] Remove old example files #18 FlareController documentation improvement. --- example/simple/assets/Dots.flr | Bin 23287 -> 0 bytes example/simple/assets/E.flr | Bin 5203 -> 0 bytes example/simple/assets/Hulk.flr | Bin 7612 -> 0 bytes example/simple/assets/ball.flj | 529 ------------------------ flare_flutter/lib/flare_controller.dart | 12 +- 5 files changed, 6 insertions(+), 535 deletions(-) delete mode 100755 example/simple/assets/Dots.flr delete mode 100755 example/simple/assets/E.flr delete mode 100755 example/simple/assets/Hulk.flr delete mode 100644 example/simple/assets/ball.flj diff --git a/example/simple/assets/Dots.flr b/example/simple/assets/Dots.flr deleted file mode 100755 index d83c11dfaea95aaebc143de68a70430eb8573add..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 23287 zcmeHPYiwLc6~4QE)_FKioQK;c**Hm?21;pbB4~?u?G33bwUHI4K@|uv%_cFn)|Ty1 zL4jPLjZ3Q{k@BMf6%~Fo#Xp2h({Xw@T-P`&CHj~&A<_L&D|WF9xcvHjLwct7Bl(D;>_&y z=vZ+UwE!aF%+NHLKS3&$a;xC3!oHJy%&fp;loW?PdLIiKu5ZsnwRKl zMeyI(@6GlQcUj-qZqMD?l;EPifHnWO??t;zm zG5zS8!r}NdwH;_p@HtSR)qfr&P}OuTw7HDiv5s)lonQ3nsA-9g)&zh1>!-4FCr|eO z_BRL3TKWWVXg4fTL2IBci=v?4fp}Iy;a`?~DJck=Sp|InI9?7P7+*%$4i3bpogF}H zhR@){@dB=*MW1>cmOw++Pd7IA>LkV+Lsfdi@>JEyI- z9=^z;DClXalV2?PQc@5!vkJNiI9>rC>P6QO4#lUTKA<5zUntHNrZWd7XL+CQpFCWE zpMwh?jiq-35f>(pZtT;Ovpv{e6gj-~4M126A8H=y1!s3?p>$p3vTNXXyKILmc7ped zF8JVLiS&V3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GHk|<9aU$v#9kGq6 zCpmSMb>zSAzcX^`lpUtOGvY+)DLH91LNZy*kO^z^L^+qR&Pb$L$@Hrv#7xZi%|Pt6~G*ApBR}tX%$IeNy=4~DObu4Lkseim%o*3+uY3W7`lCIX0}j- z*JeacZjV4Sm!KL?m*Ipjyk&PX)SQqIgA(^(v$Oon0UE#-ojD&lhNai8?7*d8k8KDP-;N*xAF@@W(3X?L6~Z z%nih3;s$*kIEyPb_GN^)l(Ex&NbUjcNn_G0uH?q1Ji9&M8T+MuVjRbV<(XXD9gz0H zZ@T06>O?X>c=K?!f+sio5^UBo{h3z^R3TSGH%`U=!Ypm1itXk~$B0HO>Wck^S$Yzo zVmk)aK-+@taz<~P4uF)T)RN%wFZ>f%e&h(!nK{eI4I)juOnVV mNw|uJlZaTOG)xgOMZ-z7Dx%?fqg9HADUy`DfT)2lAo@RaNcO=1 diff --git a/example/simple/assets/E.flr b/example/simple/assets/E.flr deleted file mode 100755 index 87366ec2f535c5a7fb6b49822e0b067a7ff35419..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5203 zcmeI03rrM87=UN@JdnelC@2+`J4=LOtMw6$ZS{6%uD04*a+XIaCLSmU2PJ6n3NZxT zs#UO-S|2o`76|bLSPiB=K)Kto7-==40-ChNM-%XgkJ{p+N@s3ay*pTwCdS&7xorNM z`RDQ9&j0`4%)LDwelSG~0AR*?1KJ*l)rbyy+>H)l$j5S-0iYLAm=bJO7J#-N`HJkr(An2*UWVxp zRG`HuMstVoCg_8y962iAP9+0;N?_ya-MH?25Im!kO#v&ES9@hB{; z)hX}p5o>6j1vv$<;?_ghxIY}uJ{E%dJgA1>;s(fqku5OxS}eT3vI*9-l|s4B3Pe9$)T93D)jmN2vm6W7|hm z-=0hs@3n<5?^uF#KDjWmZw}IYvesUqTTaY9v{)?PnTwh%YNssxtS_c@#=$JbF~O5i z`ra8h<+csgg%x2VSySbxs=(U{-xaBBu8n|H{*)ew8ONR_I67c0uG1Fbb#JB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uu_c}93{kRvd-#0cs0F-AeCdG+)%7ow@=Wdk diff --git a/example/simple/assets/ball.flj b/example/simple/assets/ball.flj deleted file mode 100644 index 2dbdce5..0000000 --- a/example/simple/assets/ball.flj +++ /dev/null @@ -1,529 +0,0 @@ -{ - "version": 15, - "Nodes": [ - { - "name": "Ellipse", - "translation": [ - 387, - 219.5 - ], - "rotation": 0, - "scale": [ - 1, - 1 - ], - "opacity": 1, - "isCollapsedVisibility": false, - "Clips": [], - "isVisible": true, - "blendMode": 0, - "drawOrder": 1, - "type": "ActorShape" - }, - { - "name": "Ellipse Path", - "parentId": 0, - "translation": [ - 0, - 0 - ], - "rotation": 0, - "scale": [ - 1, - 1 - ], - "opacity": 1, - "isCollapsedVisibility": false, - "Clips": [], - "width": 150, - "height": 150, - "type": "ActorEllipse" - }, - { - "name": "Color", - "parentId": 0, - "color": [ - 0, - 0, - 0, - 1 - ], - "width": 2, - "type": "ColorStroke" - }, - { - "name": "Color", - "parentId": 0, - "color": [ - 1, - 0.6599999666213989, - 0, - 1 - ], - "fillRule": 0, - "type": "ColorFill" - }, - { - "name": "Rectangle", - "translation": [ - 190, - 306.5 - ], - "rotation": 0.9773843811168246, - "scale": [ - 1, - 1 - ], - "opacity": 1, - "isCollapsedVisibility": false, - "Clips": [], - "isVisible": true, - "blendMode": 0, - "drawOrder": 2, - "type": "ActorShape" - }, - { - "name": "Color", - "parentId": 4, - "color": [ - 1, - 1, - 1, - 1 - ], - "width": 1, - "type": "ColorStroke" - }, - { - "name": "Gradient Color", - "parentId": 4, - "numColorStops": 2, - "colorStops": [ - 0.05076190456748009, - 0.25521522760391235, - 0.7809523940086365, - 1, - 0, - 0.018761886283755302, - 0.63471519947052, - 0.938095211982727, - 1, - 0.6975104212760925 - ], - "start": [ - 0, - -66.5 - ], - "end": [ - 0, - 66.5 - ], - "fillRule": 0, - "type": "GradientFill" - }, - { - "name": "Rectangle Path", - "parentId": 4, - "translation": [ - 0, - 0 - ], - "rotation": 0, - "scale": [ - 1, - 1 - ], - "opacity": 1, - "isCollapsedVisibility": false, - "Clips": [], - "isVisible": true, - "isClosed": true, - "Points": [ - { - "pointType": 0, - "translation": [ - -75, - -66.5 - ], - "radius": 10 - }, - { - "pointType": 0, - "translation": [ - 75, - -66.5 - ], - "radius": 10 - }, - { - "pointType": 0, - "translation": [ - 75, - 66.5 - ], - "radius": 10 - }, - { - "pointType": 0, - "translation": [ - -75, - 66.5 - ], - "radius": 10 - } - ], - "type": "ActorPath" - }, - { - "name": "Triangle", - "translation": [ - 668, - 346.5 - ], - "rotation": 0.7853981633974483, - "scale": [ - 1, - 1 - ], - "opacity": 0.5, - "isCollapsedVisibility": false, - "Clips": [], - "isVisible": true, - "blendMode": 0, - "drawOrder": 3, - "type": "ActorShape" - }, - { - "name": "Radial Gradient Color", - "parentId": 8, - "numColorStops": 2, - "colorStops": [ - 1, - 1, - 1, - 1, - 0, - 0.9238095283508301, - 0, - 0, - 0.20000000298023224, - 0.8411154747009277 - ], - "start": [ - -2.1136474609375, - 13.577850341796875 - ], - "end": [ - -0.00018310546875, - 124.86297607421875 - ], - "secondaryRadiusScale": 0.8655094061383085, - "fillRule": 0, - "type": "RadialGradientFill" - }, - { - "name": "Radial Gradient Color", - "parentId": 8, - "numColorStops": 2, - "colorStops": [ - 0.283214271068573, - 0.8184893131256104, - 0.8714285492897034, - 1, - 0, - 1, - 1, - 1, - 1, - 1 - ], - "start": [ - 41.983707427978516, - 60.971981048583984 - ], - "end": [ - -81.86444091796875, - -0.8327282071113586 - ], - "secondaryRadiusScale": 1, - "width": 10, - "type": "RadialGradientStroke" - }, - { - "name": "Triangle Path", - "parentId": 8, - "translation": [ - 0, - 0 - ], - "rotation": 0, - "scale": [ - 1, - 1 - ], - "opacity": 1, - "isCollapsedVisibility": false, - "Clips": [], - "isVisible": true, - "isClosed": true, - "Points": [ - { - "pointType": 0, - "translation": [ - 0, - -100 - ], - "radius": 0 - }, - { - "pointType": 0, - "translation": [ - 100, - 100 - ], - "radius": 0 - }, - { - "pointType": 0, - "translation": [ - -100, - 100 - ], - "radius": 0 - } - ], - "type": "ActorPath" - } - ], - "Animations": [ - { - "name": "Triangling", - "fps": 60, - "duration": 3, - "isLooping": true, - "KeyedNodes": [ - { - "nodeIndex": 8, - "Properties": [ - { - "KeyFrames": [ - { - "time": 0, - "interpolatorType": 1, - "value": 668 - }, - { - "time": 0.65, - "interpolatorType": 1, - "value": 777 - } - ], - "type": "PosX" - }, - { - "KeyFrames": [ - { - "time": 0, - "interpolatorType": 1, - "value": 346.5 - }, - { - "time": 0.65, - "interpolatorType": 1, - "value": 364.5 - } - ], - "type": "PosY" - }, - { - "KeyFrames": [ - { - "time": 0, - "interpolatorType": 1, - "value": 0.7853981633974483 - }, - { - "time": 0.65, - "interpolatorType": 1, - "value": 3.141592653589793 - } - ], - "type": "Rotation" - }, - { - "KeyFrames": [ - { - "time": 0, - "interpolatorType": 1, - "value": 1 - }, - { - "time": 0.65, - "interpolatorType": 1, - "value": 0.4 - } - ], - "type": "ScaleX" - }, - { - "KeyFrames": [ - { - "time": 0, - "interpolatorType": 1, - "value": 1 - }, - { - "time": 0.65, - "interpolatorType": 1, - "value": 0.4 - } - ], - "type": "ScaleY" - } - ] - }, - { - "nodeIndex": 9, - "Properties": [ - { - "KeyFrames": [ - { - "time": 0, - "interpolatorType": 1, - "length": 15, - "value": [ - 0.8655093908309937, - -2.1136474609375, - 13.577850341796875, - -0.00018310546875, - 124.86297607421875, - 1, - 1, - 1, - 1, - 0, - 0.9238095283508301, - 0, - 0, - 0.20000000298023224, - 0.8411154747009277 - ] - }, - { - "time": 0.65, - "interpolatorType": 1, - "length": 15, - "value": [ - 0.8655093908309937, - -2.1136474609375, - 13.577850341796875, - -0.00018310546875, - 124.86297607421875, - 0.7523809671401978, - 0.011285703629255295, - 0.011285703629255295, - 1, - 0, - 0, - 0.8476190567016602, - 0.3390476405620575, - 0.20000000298023224, - 0.8411154747009277 - ] - } - ], - "type": "FillRadial" - } - ] - }, - { - "nodeIndex": 10, - "Properties": [ - { - "KeyFrames": [ - { - "time": 0, - "interpolatorType": 1, - "length": 15, - "value": [ - 1, - 15.332008361816406, - -3.95463228225708, - 0, - 100, - 0, - 0.03999984264373779, - 1, - 1, - 0, - 1, - 1, - 1, - 1, - 1 - ] - }, - { - "time": 0.65, - "interpolatorType": 1, - "length": 15, - "value": [ - 1, - -93.08334350585938, - 93.31207275390625, - -81.86444091796875, - -0.8327282071113586, - 1, - 1, - 1, - 1, - 0, - 1, - 0, - 0.6600000858306885, - 1, - 1 - ] - } - ], - "type": "StrokeRadial" - }, - { - "KeyFrames": [ - { - "time": 0, - "interpolatorType": 1, - "value": 25 - }, - { - "time": 0.65, - "interpolatorType": 1, - "value": 0 - } - ], - "type": "StrokeWidth" - }, - { - "KeyFrames": [ - { - "time": 0, - "interpolatorType": 1, - "value": 0.1 - }, - { - "time": 0.65, - "interpolatorType": 1, - "value": 1 - } - ], - "type": "StrokeOpacity" - } - ] - } - ], - "animationStart": 0, - "animationEnd": 0.65, - "type": "Animation" - } - ] -} \ No newline at end of file diff --git a/flare_flutter/lib/flare_controller.dart b/flare_flutter/lib/flare_controller.dart index f8fea44..5427fac 100644 --- a/flare_flutter/lib/flare_controller.dart +++ b/flare_flutter/lib/flare_controller.dart @@ -5,19 +5,19 @@ import 'package:flare_dart/math/mat2d.dart'; /// [FlareController] is a general-purpose interface for customizing /// the behavior of a Flare animation at runtime. /// -/// It provides three methods -/// - [initialize()] is called at initialization time. -/// - [setViewTransform()] and [advance()] are called every frame. /// -/// [FlareController]s can be attached to [FlareActor] widgets -/// as an optional parameter. -/// e.g.: +/// [FlareController]s should be attached to [FlareActor] widgets: /// ``` /// FlareActor( /// "flare_file.flr", /// controller: _myCustomController /// ) /// ``` +/// +/// [FlareController]s can implement three methods: +/// - [initialize()] is called when the [FlareActor] is first created. +/// - [setViewTransform()] and [advance()] are called every time the [FlareActor] +/// widget is repainted. /// /// A basic implementation can be found in [FlareControls].