diff --git a/packages/file_icons/fonts/seti.ttf b/packages/file_icons/assets/seti.ttf similarity index 100% rename from packages/file_icons/fonts/seti.ttf rename to packages/file_icons/assets/seti.ttf diff --git a/packages/file_icons/bin/file_icons.dart b/packages/file_icons/bin/file_icons.dart index cea7b274..e9924d37 100644 --- a/packages/file_icons/bin/file_icons.dart +++ b/packages/file_icons/bin/file_icons.dart @@ -17,9 +17,9 @@ void main() { } void copyFont() { - final fontsDir = Directory('fonts'); - if (!fontsDir.existsSync()) { - fontsDir.createSync(); + final assetsDir = Directory('assets'); + if (!assetsDir.existsSync()) { + assetsDir.createSync(); } File( p.join( @@ -29,7 +29,7 @@ void copyFont() { 'seti', 'seti.ttf', ), - ).copySync(p.join('fonts', 'seti.ttf')); + ).copySync(p.join(assetsDir.path, 'seti.ttf')); } void generateData() { diff --git a/packages/file_icons/pubspec.yaml b/packages/file_icons/pubspec.yaml index ff513503..5ded88cc 100644 --- a/packages/file_icons/pubspec.yaml +++ b/packages/file_icons/pubspec.yaml @@ -20,4 +20,4 @@ flutter: fonts: - family: Seti fonts: - - asset: fonts/seti.ttf + - asset: assets/seti.ttf