buildSplashLeft method

Widget buildSplashLeft(
  1. BoxConstraints constraints,
  2. bool animate,
  3. bool showSplash,
  4. double splashWidth,
  5. double spaceWidth,
)

Implementation

Widget buildSplashLeft(
  BoxConstraints constraints,
  bool animate,
  bool showSplash,
  double splashWidth,
  double spaceWidth,
) {
  return AnimatedContainer(
    duration:
        animate ? const Duration(seconds: 1) : const Duration(seconds: 0),
    curve: Curves.fastOutSlowIn,
    child: Container(
      width: !showSplash
          ? spaceWidth
          : !rightAlignedSplash
              ? splashWidth
              : 0,
      color: Colors.amber,
    ),
  );
}