Skip to content

Commit 8b138fa

Browse files
committed
fix: create view not using the prefer_web config value
1 parent 51b3076 commit 8b138fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/commands/create/create_view_command.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ class CreateViewCommand extends Command with ProjectStructureValidator {
8080
// 1. If the template is supplied we use that template
8181
// 2. If the template is null use config web to decide
8282
print('templateType:$templateType preferWeb:${_configService.preferWeb}');
83+
84+
// We assign this when it's not null so there should be no default value for this
8385
templateType ??= _configService.preferWeb ? 'web' : 'empty';
8486

8587
await _templateService.renderTemplate(

0 commit comments

Comments
 (0)