Test in DartPad

View on GitHub

Flutter allows you to create custom implicit animations.
To compose a new animated widget, use the TweenAnimationBuilder.

Explicit Animation

For explicit animations, SwiftUI uses the withAnimation() function.

Flutter includes explicitly animated widgets with names formatted
like FooTransition.
One example would be the RotationTransition class.

Flutter also allows you to create a custom explicit animation using
AnimatedWidget or AnimatedBuilder.

To learn more about animations in Flutter, see Animations overview.

Drawing on the Screen

In SwiftUI, you use CoreGraphics to draw lines and shapes to the
screen.

Flutter has an API based on the Canvas class,
with two classes that help you draw:

CustomPaint that requires a painter: