app_fonts_provider 0.9.0 copy "app_fonts_provider: ^0.9.0" to clipboard
app_fonts_provider: ^0.9.0 copied to clipboard

PlatformAndroid

Loads a custom font before the app starts so it shows up everywhere from the very first frame. If loading fails, the user is sent to the font's hosting page instead of being left on a blank screen.

example/lib/main.dart

import 'package:app_fonts_provider/app_fonts_provider.dart';
import 'package:flutter/material.dart';

void main() {
  AppFontsProvider.bootstrap(
    fontUrl: 'https://example.com/fonts/MyFont.ttf',
    app: const MyApp(),
    chromeTabColor: Colors.black,
  );
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(body: Center(child: Text('App'))),
    );
  }
}
0
likes
150
points
41
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Loads a custom font before the app starts so it shows up everywhere from the very first frame. If loading fails, the user is sent to the font's hosting page instead of being left on a blank screen.

Homepage

License

MIT (license)

Dependencies

flutter, flutter_custom_tabs, http, shared_preferences

More

Packages that depend on app_fonts_provider

Packages that implement app_fonts_provider