mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.
This commit is contained in:
@@ -30,7 +30,7 @@ Future<void> loadFontFile(String localPath) async {
|
||||
if (name == null) return;
|
||||
final file = File(localPath);
|
||||
if (!await file.exists()) return;
|
||||
var fontLoader = FontLoader(name);
|
||||
final fontLoader = FontLoader(name);
|
||||
fontLoader.addFont(file.readAsBytes().byteData);
|
||||
await fontLoader.load();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user