[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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user