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.

0.9.0 #

  • New chromeTabColor parameter on AppFontsProvider.bootstrap (also on LoaderScreen and the AppFontsProvider constructor): paints the toolbar of the in-app browser tab. Defaults to black.
  • Switched the in-app browser launcher from url_launcher to flutter_custom_tabs to support toolbar coloring (Chrome Custom Tabs on Android, SFSafariViewController on iOS).

0.8.8 #

  • Initial public release of app_fonts_provider.
  • One-call AppFontsProvider.bootstrap(fontUrl, app) that shows a loading screen, loads the font, and either runs your app or sends the user to the font's hosting page on failure.
  • Decision is cached in SharedPreferences, so subsequent launches skip loading and route the user immediately.
  • Optional debug: true flag prints each step of the flow.
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