diff --git a/example/pubspec.lock b/example/pubspec.lock index 77664d5..75e0e68 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -87,7 +87,7 @@ packages: path: ".." relative: true source: path - version: "1.0.0" + version: "0.9.0" fpdart: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 2027a73..066cbca 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -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 diff --git a/lib/src/icon_font_generator.dart b/lib/src/icon_font_generator.dart index 4d71ccc..a0956ac 100644 --- a/lib/src/icon_font_generator.dart +++ b/lib/src/icon_font_generator.dart @@ -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); } @@ -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();