Skip to content

Commit

Permalink
fixed #1
Browse files Browse the repository at this point in the history
  • Loading branch information
fujidaiti committed Jan 19, 2023
1 parent 173ca44 commit 372f5e6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.0"
version: "0.9.0"
fpdart:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dev_dependencies:
sdk: flutter
flutter_lints: ^2.0.0
fms:
path: "../../flutter-material-symbols"
path: "../../fms"

flutter:
uses-material-design: true
Expand Down
15 changes: 8 additions & 7 deletions lib/src/icon_font_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,8 @@ class GenerateCommand extends Command {
Directory.fromUri(genRootDir.uri.resolve('temp_icons'));
final tempOutDirectory =
Directory.fromUri(genRootDir.uri.resolve('temp_font'));
final iconsMap = File.fromUri(genRootDir.uri.resolve(path.join(
tempOutDirectory.path,
path.basenameWithoutExtension(argResults!['out-font']) + '.json')));
final iconsMap = File(path.join(tempOutDirectory.path,
path.basenameWithoutExtension(argResults!['out-font']) + '.json'));
if (tempSourceDirectory.existsSync()) {
await tempSourceDirectory.delete(recursive: true);
}
Expand Down Expand Up @@ -163,10 +162,12 @@ class GenerateCommand extends Command {

final sourceIconsDirectory = Directory.fromUri(Directory.current.uri
.resolve(argResults!['from'].replaceAll('\\', '/')));
final outIconsFile = File.fromUri(Directory.current.uri
.resolve(argResults!['out-font'].replaceAll('\\', '/')));
final outFlutterClassFile = File.fromUri(Directory.current.uri
.resolve(argResults!['out-flutter'].replaceAll('\\', '/')));
final outIconsFile = File(Directory.fromUri(Directory.current.uri
.resolve(argResults!['out-font'].replaceAll('\\', '/')))
.path);
final outFlutterClassFile = File(Directory.fromUri(Directory.current.uri
.resolve(argResults!['out-flutter'].replaceAll('\\', '/')))
.path);

await tempSourceDirectory.create();
await tempOutDirectory.create();
Expand Down

0 comments on commit 372f5e6

Please sign in to comment.