FlutstrapVisibility.mobileOnly constructor

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

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

Implementation

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