FlutstrapVisibility.tabletOnly constructor

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

Shows the child only on tablet screens (md breakpoint) Hides on mobile and desktop screens

Implementation

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