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() { void copyFont() {
final fontsDir = Directory('fonts'); final assetsDir = Directory('assets');
if (!fontsDir.existsSync()) { if (!assetsDir.existsSync()) {
fontsDir.createSync(); assetsDir.createSync();
} }
File( File(
p.join( p.join(
@ -29,7 +29,7 @@ void copyFont() {
'seti', 'seti',
'seti.ttf', 'seti.ttf',
), ),
).copySync(p.join('fonts', 'seti.ttf')); ).copySync(p.join(assetsDir.path, 'seti.ttf'));
} }
void generateData() { void generateData() {

2
packages/file_icons/pubspec.yaml

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

Loading…
Cancel
Save