We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0611955 commit e871ec4Copy full SHA for e871ec4
lib/src/constants/extensions.dart
@@ -8,6 +8,12 @@ extension BuildContextExtension on BuildContext {
8
MediaQueryData get mediaQuery => MediaQuery.of(this);
9
10
ThemeData get themeData => Theme.of(this);
11
+
12
+ double get topPadding => mediaQuery.padding.top;
13
14
+ double get bottomPadding => mediaQuery.padding.bottom;
15
16
+ double get bottomInsets => mediaQuery.viewInsets.bottom;
17
}
18
19
extension BrightnessExtension on Brightness {
@@ -17,7 +23,7 @@ extension BrightnessExtension on Brightness {
23
24
25
extension ColorExtension on Color {
20
- bool get isTransparent => this == Colors.transparent;
26
+ bool get isTransparent => this == Colors.transparent || alpha == 0x00;
21
27
22
28
29
extension ThemeDataExtension on ThemeData {
0 commit comments