buildResponsive method
Builds with the current Breakpoints.
This method will be automatically called when the breakpoint
changes.
Implementation
@override
Widget buildResponsive(BuildContext context, Breakpoints breakpoint) {
return GridView.custom(
scrollDirection: scrollDirection?.getForBreakpoint(breakpoint) ?? Axis.vertical,
reverse: reverse?.getForBreakpoint(breakpoint) ?? false,
controller: controller,
primary: primary,
physics: physics?.getForBreakpoint(breakpoint),
shrinkWrap: shrinkWrap?.getForBreakpoint(breakpoint) ?? false,
padding: padding?.getForBreakpoint(breakpoint),
gridDelegate: gridDelegate,
childrenDelegate: childrenDelegate,
cacheExtent: cacheExtent,
semanticChildCount: semanticChildCount,
dragStartBehavior: dragStartBehavior?.getForBreakpoint(breakpoint) ?? DragStartBehavior.start,
keyboardDismissBehavior:
keyboardDismissBehavior?.getForBreakpoint(breakpoint) ?? ScrollViewKeyboardDismissBehavior.manual,
restorationId: restorationId,
clipBehavior: clipBehavior?.getForBreakpoint(breakpoint) ?? Clip.hardEdge,
);
}