mirror of
https://github.com/foss42/apidash.git
synced 2025-05-31 14:23:45 +08:00
19 lines
574 B
Dart
19 lines
574 B
Dart
import 'package:apidash/consts.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
extension MediaQueryExtension on BuildContext {
|
|
bool get isCompactWindow =>
|
|
MediaQuery.of(this).size.width < kCompactWindowWidth;
|
|
|
|
bool get isMediumWindow =>
|
|
MediaQuery.of(this).size.width < kMediumWindowWidth;
|
|
|
|
bool get isExpandedWindow =>
|
|
MediaQuery.of(this).size.width < kExpandedWindowWidth;
|
|
|
|
bool get isLargeWindow => MediaQuery.of(this).size.width < kLargeWindowWidth;
|
|
|
|
bool get isExtraLargeWindow =>
|
|
MediaQuery.of(this).size.width > kLargeWindowWidth;
|
|
}
|