Skip to content

Commit 161d474

Browse files
authored
Merge pull request #1163 from appwrite/fix-more-dart-filepaths
Fix dash instead of snake
2 parents 498a19d + 6141ebe commit 161d474

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/SDK/Language/Flutter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,12 @@ public function getFiles(): array
247247
],
248248
[
249249
'scope' => 'service',
250-
'destination' => '/lib/services/{{service.name | caseDash}}.dart',
250+
'destination' => '/lib/services/{{service.name | caseSnake}}.dart',
251251
'template' => 'flutter/lib/services/service.dart.twig',
252252
],
253253
[
254254
'scope' => 'service',
255-
'destination' => '/test/services/{{service.name | caseDash}}_test.dart',
255+
'destination' => '/test/services/{{service.name | caseSnake}}_test.dart',
256256
'template' => 'flutter/test/services/service_test.dart.twig',
257257
],
258258
[

templates/dart/lib/package.dart.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ part 'permission.dart';
2828
part 'role.dart';
2929
part 'id.dart';
3030
{% for service in spec.services %}
31-
part 'services/{{service.name | caseDash}}.dart';
31+
part 'services/{{service.name | caseSnake}}.dart';
3232
{% endfor %}

templates/flutter/lib/package.dart.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ part 'permission.dart';
3131
part 'role.dart';
3232
part 'id.dart';
3333
{% for service in spec.services %}
34-
part 'services/{{service.name | caseDash}}.dart';
34+
part 'services/{{service.name | caseSnake}}.dart';
3535
{% endfor %}

0 commit comments

Comments
 (0)