Skip to content

Commit

Permalink
fix for empty monitor size
Browse files Browse the repository at this point in the history
  • Loading branch information
krjw-eyev committed Oct 11, 2024
1 parent e554962 commit e453b64
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/ui/calibration/calibration_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class _CalibrationViewState extends ConsumerState<CalibrationView> with SingleTi
_buttonandlogovisible = false;

SchedulerBinding.instance.addPostFrameCallback((_) async {
Size size;
Size size = const Size(531, 299);
if (UniversalPlatform.isIOS) {
skyle.IPadModel model;
final deviceInfo = DeviceInfoPlugin();
Expand All @@ -75,9 +75,8 @@ class _CalibrationViewState extends ConsumerState<CalibrationView> with SingleTi
size = Size(model.screenSizeMM.$1, model.screenSizeMM.$2);
} else if (UniversalPlatform.isDesktop) {
size = Millimeters.of(context).physical;
} else {
size = Size(300, 200);
}

await Future.delayed(const Duration(milliseconds: 1000));

if (mounted) {
Expand Down

0 comments on commit e453b64

Please sign in to comment.