fullScreenBuilder static method

Widget fullScreenBuilder(
  1. BuildContext context,
  2. WidgetBuilder builder,
  3. Animation<double> animation,
  4. Animation<double> secondaryAnimation,
)

Implementation

static Widget fullScreenBuilder(
  BuildContext context,
  WidgetBuilder builder,
  Animation<double> animation,
  Animation<double> secondaryAnimation,
) {
  return AnimatedBuilder(
    animation: animation,
    builder: (context, child) =>
        Opacity(opacity: animation.value, child: builder(context)),
  );
}