Skip to content

lppcg/fl_lib

Repository files navigation

fl_lib

Common library for the my Flutter projects.

Usage

  1. First, add dep.

    dependencies:
      fl_lib:
        git:
          url: https://github.com/lppcg/fl_lib.git
          ref: main
  2. Set localizationsDelegates

    MaterialApp(
      localizationsDelegates: const [
        LibLocalizations.delegate,
        ...AppLocalizations.localizationsDelegates,
      ],
      supportedLocales: AppLocalizations.supportedLocales,
    )
  3. Update lib l10n

    void didChangeDependencies() {
      super.didChangeDependencies();
      context.setLibL10n();
    }
  4. Init Paths

    void main() async {
      await Paths.init();
      runApp(MyApp());
    }

Attention

Remember to run ./export_all.dart after changing any file in this library.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages