File tree 2 files changed +5
-0
lines changed
extended_theme/extensions
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ class DefaultDialog extends StatelessWidget {
124
124
return material.Dialog (
125
125
elevation: 0 ,
126
126
backgroundColor: Colors .transparent,
127
+ insetPadding: context.isPhoneSmall ? context.paddingL_0 : context.paddingXXL_0,
127
128
child: Container (
128
129
constraints: BoxConstraints (
129
130
maxWidth: context.dimensions.dialogMaxWidth (context)
Original file line number Diff line number Diff line change @@ -129,6 +129,10 @@ extension ContextExtension on BuildContext {
129
129
bool get isPhoneApp => ! kIsWeb && (Platform .isIOS || Platform .isAndroid) && MediaQuery .of (this ).size.shortestSide < _tabletSmallestWidthThreshold;
130
130
bool get isPhoneWeb => kIsWeb && (defaultTargetPlatform == TargetPlatform .iOS || defaultTargetPlatform == TargetPlatform .android) && MediaQuery .of (this ).size.shortestSide < _tabletSmallestWidthThreshold;
131
131
132
+
133
+ bool get isPhoneSmall => isPhone && MediaQuery .of (this ).size.shortestSide < 350.0 ;
134
+
135
+
132
136
bool get isPortableDevice => isPortableDeviceApp || isPortableDeviceWeb;
133
137
bool get isPortableDeviceApp => ! kIsWeb && (Platform .isIOS || Platform .isAndroid);
134
138
bool get isPortableDeviceWeb => kIsWeb && (defaultTargetPlatform == TargetPlatform .iOS || defaultTargetPlatform == TargetPlatform .android);
You can’t perform that action at this time.
0 commit comments