Tests
This commit is contained in:
parent
ef75eed55c
commit
4e4993e8f2
|
|
@ -13,9 +13,10 @@ class Keys {
|
||||||
Future<bool> isTablet(FlutterDriver driver) async {
|
Future<bool> isTablet(FlutterDriver driver) async {
|
||||||
final info =
|
final info =
|
||||||
await driver.getRenderObjectDiagnostics(find.byType('MaterialApp'));
|
await driver.getRenderObjectDiagnostics(find.byType('MaterialApp'));
|
||||||
final regExp = new RegExp(r'Size\(([\d\.]*), ([\d\.]*)');
|
|
||||||
|
|
||||||
|
final regExp = new RegExp(r'Size\(([\d\.]*), ([\d\.]*)');
|
||||||
final match = regExp.firstMatch(info.toString());
|
final match = regExp.firstMatch(info.toString());
|
||||||
|
|
||||||
final width = double.parse(match.group(1));
|
final width = double.parse(match.group(1));
|
||||||
final height = double.parse(match.group(2));
|
final height = double.parse(match.group(2));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue