Skip to content

Commit

Permalink
INTL-1332: Minor changes in import format
Browse files Browse the repository at this point in the history
  • Loading branch information
chetansinghchoudhary-wk committed Sep 12, 2023
1 parent 59475a6 commit f169e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/intl_suggestors/intl_importer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ Stream<Patch> intlImporter(

final importFormat = decideImportFormat(hasPackageImport, hasRelativeImports);

final importStatement = importFormat == 'package' ? "import '$intlUri'; "
: "import './intl/${projectName}_intl.dart'; ";
final importStatement = importFormat == 'package' ? insertInfo.leadingNewlines + "import '$intlUri'; " + insertInfo.trailingNewlines
: insertInfo.leadingNewlines + "import './intl/${projectName}_intl.dart'; " + insertInfo.trailingNewlines;
yield Patch(
importStatement,
insertInfo.offset,
Expand Down

0 comments on commit f169e23

Please sign in to comment.