fluent2Fade function

Widget fluent2Fade(
  1. Animation<double> presence,
  2. Widget child
)

child faded by presence: a centred sheet's entrance.

Implementation

Widget fluent2Fade(Animation<double> presence, Widget child) => AnimatedBuilder(
  animation: presence,
  builder: (context, child) =>
      Opacity(opacity: presence.value.clamp(0.0, 1.0), child: child),
  child: child,
);