Treat tests like a keyboard OS

pull/1108/head
Adil Hanney 2 years ago
parent 0c2f72b49c
commit 3dc619e532
No known key found for this signature in database
GPG Key ID: 27A0885BC5740457
  1. 4
      lib/src/widgets/raw_editor.dart

@ -1,5 +1,6 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:math' as math;
// ignore: unnecessary_import
import 'dart:typed_data';
@ -844,6 +845,9 @@ class RawEditorState extends EditorState
if (isKeyboardOS()) {
_keyboardVisible = true;
} else if (!kIsWeb && Platform.environment.containsKey('FLUTTER_TEST')) {
// treat tests like a keyboard OS
_keyboardVisible = true;
} else {
// treat iOS Simulator like a keyboard OS
isIOSSimulator().then((isIosSimulator) {

Loading…
Cancel
Save