Ahmed Fwela

added desktop responsive

@@ -130,6 +130,15 @@ extension ContextExtensionss on BuildContext { @@ -130,6 +130,15 @@ extension ContextExtensionss on BuildContext {
130 /// True if the current device is Tablet 130 /// True if the current device is Tablet
131 bool get isTablet => isSmallTablet; 131 bool get isTablet => isSmallTablet;
132 132
  133 + /// True if the width is smaller than 1200p
  134 + bool get isDesktopOrLess => width <= 1200;
  135 +
  136 + /// True if the width is higher than 1200p
  137 + bool get isDesktopOrWider => width >= 1200;
  138 +
  139 + /// same as [isDesktopOrLess]
  140 + bool get isDesktop => isDesktopOrLess;
  141 +
133 /// Returns a specific value according to the screen size 142 /// Returns a specific value according to the screen size
134 /// if the device width is higher than or equal to 1200 return 143 /// if the device width is higher than or equal to 1200 return
135 /// [desktop] value. if the device width is higher than or equal to 600 144 /// [desktop] value. if the device width is higher than or equal to 600