[flutter_tools] remove flutter view cache (#56223)

Remove caching of FlutterView. Perhaps the FlutterView RPC might return an empty list if the VM is not quite up yet? We had some old logic to poll the flutter views RPC for up to 200ms. That doesn't seem like a great approach, so instead we could forgo it entirely and trust that either the views come up before the developer tries to interact, or we crash.
This commit is contained in:
Jonah Williams
2020-05-05 10:47:01 -07:00
committed by GitHub
parent a48a51b0ff
commit 209bdcb669
18 changed files with 355 additions and 281 deletions

View File

@@ -66,7 +66,7 @@ abstract class ChromiumDevice extends Device {
bool get supportsStartPaused => true;
@override
bool get supportsFlutterExit => true;
bool get supportsFlutterExit => false;
@override
bool get supportsScreenshot => false;
@@ -343,6 +343,9 @@ class WebServerDevice extends Device {
@override
Future<bool> isLatestBuildInstalled(ApplicationPackage app) async => true;
@override
bool get supportsFlutterExit => false;
@override
Future<bool> get isLocalEmulator async => false;