Skip to content

Commit 2648eeb

Browse files
committed
flutter format
1 parent 0bc318c commit 2648eeb

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

lib/metro/metro.dart

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import 'package:nylo_framework/metro/stubs/widget_stateless_stub.dart';
1818
import 'dart:io';
1919

2020
import 'package:recase/recase.dart';
21+
2122
final ArgParser parser = ArgParser(allowTrailingOptions: true);
2223
List<NyCommand> _allCommands = [
2324
NyCommand(
@@ -219,8 +220,7 @@ _makeController(List<String> arguments) async {
219220
String className =
220221
argResults.arguments.first.replaceAll(RegExp(r'(_?controller)'), "");
221222

222-
String stubController =
223-
controllerStub(controllerName: ReCase(className));
223+
String stubController = controllerStub(controllerName: ReCase(className));
224224

225225
await MetroService.makeController(className, stubController,
226226
forceCreate: hasForceFlag ?? false);
@@ -293,12 +293,10 @@ _makePage(List<String> arguments) async {
293293
ReCase rc = ReCase(className);
294294
if (shouldCreateController) {
295295
String stubPageAndController = pageWithControllerStub(
296-
className: rc,
297-
importName: arguments.first.replaceAll("_page", ""));
296+
className: rc, importName: arguments.first.replaceAll("_page", ""));
298297
await MetroService.makePage(className, stubPageAndController);
299298

300-
String stubController =
301-
controllerStub(controllerName: rc);
299+
String stubController = controllerStub(controllerName: rc);
302300
await MetroService.makeController(className, stubController);
303301

304302
MetroConsole.writeInGreen(

lib/metro/models/ny_command.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ class NyCommand {
88

99
NyCommand(
1010
{this.name, this.options, this.arguments, this.category, this.action});
11-
}
11+
}

0 commit comments

Comments
 (0)