scale static method

dynamic scale({
  1. required BuildContext context,
  2. required Curve animationType,
  3. int? durationInMilliSeconds,
  4. bool? isClockWise,
  5. Color? logoBackdropColor,
  6. double? height,
  7. double? width,
  8. BoxFit? boxFit,
  9. Color? fullScreenBackdropColor,
  10. Key? key,
})

Implementation

static scale({
  required BuildContext context,
  required String logo,
  required Curve animationType,
  int? durationInMilliSeconds,
  bool? isClockWise,
  Color? logoBackdropColor,
  double? height,
  double? width,
  BoxFit? boxFit,
  Color? fullScreenBackdropColor,
  Key? key,
}) {
  showDialog(
      context: context,
      barrierDismissible: false,
      useRootNavigator: true,
      barrierColor: fullScreenBackdropColor?? Colors.black54,
      builder: (BuildContext context) => Scale(
        logo: logo,
        animationType: animationType,
        speed: durationInMilliSeconds ?? 600,
        isClockWise: isClockWise ?? true,
        logoBackdropColor: logoBackdropColor ?? Colors.transparent,
        height: height ?? 100.0,
        width: width ?? 100,
        boxFit: boxFit ?? BoxFit.cover,
        key: key,
      ));
}