Skip to content

Commit

Permalink
cli gen routes.g.dart add padding
Browse files Browse the repository at this point in the history
  • Loading branch information
chen56 committed Apr 27, 2024
1 parent f42f7e3 commit a3393d3
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 79 deletions.
157 changes: 79 additions & 78 deletions notes/flutter_web/lib/routes.g.dart

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/you_cli/bin/cli.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Cmd_gen_routes_g_dart extends Command {
}
return '''${padding}To${async?".lazy":""}("${node.dir.basename}" $buildArg, children:[
${node.children.map((child) => _genRouteTreeCode(child)).map((e) => "$e,").join("\n")}
])''';
$padding])''';
}

// [run] may also return a Future.
Expand Down

0 comments on commit a3393d3

Please sign in to comment.