buildResponsive method

  1. @override
Widget buildResponsive(
  1. BuildContext context,
  2. Breakpoints breakpoint
)
override

Builds with the current Breakpoints. This method will be automatically called when the breakpoint changes.

Implementation

@override
Widget buildResponsive(BuildContext context, Breakpoints breakpoint) {
  final sizedBoxData = data.getForBreakpoint(breakpoint);

  return SizedBox(
    width: sizedBoxData?.width,
    height: sizedBoxData?.height,
    child: child,
  );
}