You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
374 B
13 lines
374 B
import 'package:flutter/material.dart';
|
|
|
|
extension BuildContextExtension on BuildContext {
|
|
MediaQueryData get mediaQuery => MediaQuery.of(this);
|
|
|
|
double get topPadding => mediaQuery.padding.top;
|
|
|
|
double get bottomPadding => mediaQuery.padding.bottom;
|
|
|
|
double get bottomInsets => mediaQuery.viewInsets.bottom;
|
|
|
|
EdgeInsets get viewInsets => mediaQuery.viewInsets;
|
|
}
|