V4.6.6 fixes (#970)

* Fix popping wrong context in exchange page

* Pass exception handler to wallets code

* Fix mobile UI with iPad view

* Set iPhone deployment target to 11 [skip ci]

* Update Macos deployment target [skip ci]
This commit is contained in:
Omar Hatem
2023-06-16 04:14:01 +03:00
committed by GitHub
parent f1904077d2
commit c4926ae63a
11 changed files with 71 additions and 56 deletions
+2 -2
View File
@@ -12,10 +12,10 @@ class ResponsiveLayoutUtil {
static final instance = ResponsiveLayoutUtil._();
bool get isMobile =>
WidgetsBinding.instance.platformDispatcher.views.first.physicalSize.width < _kMobileThreshold;
MediaQueryData.fromWindow(WidgetsBinding.instance.window).size.width < _kMobileThreshold;
bool get isIpad {
final width = WidgetsBinding.instance.platformDispatcher.views.first.physicalSize.width;
final width = MediaQueryData.fromWindow(WidgetsBinding.instance.window).size.width;
return width >= _kMobileThreshold && !(width > _kIpadMaxWidth);
}