FlutstrapVisibility.desktopOnly constructor

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

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

Implementation

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