@@ -189,8 +189,7 @@ class RunCommand extends RunCommandBase {
189189 )
190190 ..addFlag ('fast-start' ,
191191 negatable: true ,
192- defaultsTo: false ,
193- hide: true ,
192+ defaultsTo: true ,
194193 help: 'Whether to quickly bootstrap applications with a minimal app. '
195194 'Currently this is only supported on Android devices. This option '
196195 'cannot be paired with --use-application-binary.'
@@ -319,10 +318,6 @@ class RunCommand extends RunCommandBase {
319318 await super .validateCommand ();
320319 }
321320
322- if (boolArg ('fast-start' ) && runningWithPrebuiltApplication) {
323- throwToolExit ('--fast-start is not supported with --use-application-binary' );
324- }
325-
326321 devices = await findAllTargetDevices ();
327322 if (devices == null ) {
328323 throwToolExit (null );
@@ -365,7 +360,9 @@ class RunCommand extends RunCommandBase {
365360 vmserviceOutFile: stringArg ('vmservice-out-file' ),
366361 // Allow forcing fast-start to off to prevent doing more work on devices that
367362 // don't support it.
368- fastStart: boolArg ('fast-start' ) && devices.every ((Device device) => device.supportsFastStart),
363+ fastStart: boolArg ('fast-start' )
364+ && ! runningWithPrebuiltApplication
365+ && devices.every ((Device device) => device.supportsFastStart),
369366 );
370367 }
371368 }
@@ -428,12 +425,6 @@ class RunCommand extends RunCommandBase {
428425 }
429426
430427 for (final Device device in devices) {
431- if (! device.supportsFastStart && boolArg ('fast-start' )) {
432- globals.printStatus (
433- 'Using --fast-start option with device ${device .name }, but this device '
434- 'does not support it. Overriding the setting to false.'
435- );
436- }
437428 if (await device.isLocalEmulator) {
438429 if (await device.supportsHardwareRendering) {
439430 final bool enableSoftwareRendering = boolArg ('enable-software-rendering' ) == true ;
0 commit comments