FlutstrapVisibility.hideOnMobile constructor

FlutstrapVisibility.hideOnMobile({
  1. required Widget child,
  2. Widget? fallback,
})

Hides the child on mobile screens (xs and sm breakpoints) Shows on tablet and desktop screens

Implementation

factory FlutstrapVisibility.hideOnMobile({
  required Widget child,
  Widget? fallback,
}) {
  return FlutstrapVisibility(
    child: child,
    showOnXs: false,
    showOnSm: false,
    showOnMd: true,
    showOnLg: true,
    showOnXl: true,
    showOnXxl: true,
    fallback: fallback,
  );
}