Skip to content

Flutter-Students-Club/flutter_starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_starter

Routing

For routing you can use RouteManager Class RouteManager initted inside the SplashView

  • Routemanager.newPage(Widget())
  • RouteManager.newPageReplacement(Widget())

    Note: You have create RouteManager context again after use newPageReplacement command

  • RouteManager.backPage()

Storage

For local storage you can use Storage Class

  • saveString(String)
  • getString(String)
  • saveList(String)
  • getList(String)
  • deleteStorage(String)

StatefulWrapper

If you need to use created hook inside the StatelessWidget just use StatefulWrapper

 Widget build(BuildContext context) {
    return StatefulWrapper(
        onInit: () {
          RouteManager.initializeRoute(context);
          WidgetsBinding.instance?.addPostFrameCallback((_) {
            //TODO: Redirect
          });
        },
        child: Scaffold(
          appBar: AppBar(
            title: Text('${AppLocalizations.of(context).helloWorld}'),
          ),
        ));
  }

Extensions

  • You can find some ready String, Context and DateTime extensions

Utils

  • You can add helper functions inside the Utils Class

Todos

  • Add your Todo's here

Custom Theme

  • Manage your theme settings.

Localization

  • For localization you can use .arb files.
  • Create .arb files inside the lib/I10n
  • And run this command for generate language files flutter gen-l10n

logo

About

starter template flutter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published