How do I add or remove an Element from my layout?

In Xamarin.Forms, you had to remove or add an Element in code.
This involved either setting the Content property or calling
Add() or Remove() if it was a list.

In Flutter, because widgets are immutable there is no direct equivalent.
Instead, you can pass a function to the parent that returns a widget,
and control that child’s creation with a boolean flag.

The following example shows how to toggle between two widgets
when the user clicks the FloatingActionButton:

How do I animate a widget?

In Xamarin.Forms, you create simple animations using ViewExtensions that
include methods such as FadeTo and TranslateTo.
You would use these methods on a view
to perform the required animations.

<Image

Source=

"{Binding MyImage}"

x:Name=

"myImage"

/>