FlutstrapVisibility.hideOnDesktop constructor

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

Hides the child on desktop screens (lg, xl, and xxl breakpoints) Shows on mobile and tablet screens

Implementation

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