Skip to content

Commit 1c2be02

Browse files
authored
style fixes (flutter#6662)
1 parent 6f3ba9c commit 1c2be02

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

packages/flutter_tools/lib/src/commands/run.dart

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class RunCommand extends RunCommandBase {
4545
@override
4646
final String description = 'Run your Flutter app on an attached device.';
4747

48-
RunCommand({bool verboseHelp: false}) {
48+
RunCommand({ bool verboseHelp: false }) {
4949
argParser.addFlag('full-restart',
5050
defaultsTo: true,
5151
help: 'Stop any currently running application process before running the app.');
@@ -64,16 +64,20 @@ class RunCommand extends RunCommandBase {
6464
usesPubOption();
6565

6666
// Option to enable hot reloading.
67-
argParser.addFlag('hot',
68-
negatable: true,
69-
defaultsTo: kHotReloadDefault,
70-
help: 'Run with support for hot reloading.');
67+
argParser.addFlag(
68+
'hot',
69+
negatable: true,
70+
defaultsTo: kHotReloadDefault,
71+
help: 'Run with support for hot reloading.'
72+
);
7173

7274
// Option to write the pid to a file.
73-
argParser.addOption('pid-file',
74-
help: "Specify a file to write the process id to.\n"
75-
"You can send SIGUSR1 to trigger a hot reload\n"
76-
"and SIGUSR2 to trigger a full restart.");
75+
argParser.addOption(
76+
'pid-file',
77+
help: 'Specify a file to write the process id to.\n'
78+
'You can send SIGUSR1 to trigger a hot reload\n'
79+
'and SIGUSR2 to trigger a full restart.'
80+
);
7781

7882

7983
// Hidden option to enable a benchmarking mode. This will run the given
@@ -273,7 +277,7 @@ Future<int> startApp(
273277
// messy.
274278
if (stop) {
275279
if (package != null) {
276-
printTrace("Stopping app '${package.name}' on ${device.name}.");
280+
printTrace('Stopping app "${package.name}" on ${device.name}.');
277281
await device.stopApp(package);
278282
}
279283
}

packages/flutter_tools/lib/src/run.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class RunAndStayResident extends ResidentRunner {
144144

145145
// TODO(devoncarew): Move this into the device.startApp() impls.
146146
if (_package != null) {
147-
printTrace("Stopping app '${_package.name}' on ${device.name}.");
147+
printTrace('Stopping app "${_package.name}" on ${device.name}.');
148148
await device.stopApp(_package);
149149
}
150150

0 commit comments

Comments
 (0)