Browse Source

chore(file_icons): Move font from fonts/ to assets/

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/917/head
jld3103 1 year ago
parent
commit
bd9ea7a909
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 0
      packages/file_icons/assets/seti.ttf
  2. 8
      packages/file_icons/bin/file_icons.dart
  3. 2
      packages/file_icons/pubspec.yaml

0
packages/file_icons/fonts/seti.ttf → packages/file_icons/assets/seti.ttf

8
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() {

2
packages/file_icons/pubspec.yaml

@ -20,4 +20,4 @@ flutter:
fonts:
- family: Seti
fonts:
- asset: fonts/seti.ttf
- asset: assets/seti.ttf

Loading…
Cancel
Save