11 lines
352 B
Dart
11 lines
352 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
bool isDesktop(BuildContext context) =>
|
||
|
MediaQuery.of(context).size.width >= 1028;
|
||
|
|
||
|
bool isTablet(BuildContext context) =>
|
||
|
MediaQuery.of(context).size.width >= 768 &&
|
||
|
MediaQuery.of(context).size.width <= 1027;
|
||
|
|
||
|
bool isMobile(BuildContext context) =>
|
||
|
MediaQuery.of(context).size.width <= 767;
|