Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/src/dart_class_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ class DartClassGenerator {
bool _processing = false;

/// Dart code formatter used to format the generated code.
static final formatter = DartFormatter();
static final formatter = DartFormatter(
languageVersion: DartFormatter.latestLanguageVersion,
);

/// Global configuration values retrieved from the config file.
final GlobalConfigs globals;
Expand Down
4 changes: 3 additions & 1 deletion lib/src/fonts_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ class FontsGenerator {
writeToFile(
name: Formatter.formatFileName(globals.fontConfigs.fileName),
path: globals.package,
content: DartFormatter().format(content),
content: DartFormatter(
languageVersion: DartFormatter.latestLanguageVersion,
).format(content),
);
logger?.success('Generated fonts references successfully.');
}
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ issue_tracker: https://github.com/BirjuVachhani/spider/issues
documentation: https://birjuvachhani.github.io/spider/

environment:
sdk: '>=2.17.0 <3.0.0'
sdk: ">=2.17.0 <3.0.0"

platforms:
linux:
Expand All @@ -19,7 +19,7 @@ dependencies:
path: ^1.9.0
yaml: ^3.1.2
args: ^2.5.0
dart_style: ^2.3.6
dart_style: ^3.0.1
logging: ^1.2.0
watcher: ^1.1.0
http: ^1.2.2
Expand All @@ -40,4 +40,4 @@ dev_dependencies:
executables:
spider: spider

scripts: scripts.yaml
scripts: scripts.yaml