main library

The entry point for the application

Not a library, just a place to initialize some properties and plugins of the application:

  • tr - translation provider,
  • log - logger,
  • set lets-encrypt certificate,
  • register Hive adapters (and open hiveHttpCache Box)...

Properties

locator GetIt UI Root
get_it locator {@category UI Root}
final
log Logger UI Root
App Logger {@category UI Root}
final
tr AppLocalizations Function({String? instanceName, dynamic param1, dynamic param2, Type? type}) UI Root
Translations strings getter.
final

Functions

init() Future<void> UI Root
Main function for initializing whole App, also used in tests.
initAndSetCertificate() Future<void>
Should only called once, call init inside, and set certificate.
loadDefaultLocale() Future<AppLocalizations>
main() Future<void>
runMain() Future<void> About UI Root
Run application, init Hive, set urlStrategy, and demo data.