Skip to content

hofstede-matheus/flutter-res-folder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

flutter-res-folder

structure

Overview

Statically define your resources for better performance, productivity and organization with a "à la" Android Framework resource folder scaffold. Contributions are welcome.

Resources

  • colors
  • images
  • strings
  • themes

How to use

  • Copy the structure to your project folder
  • Define your constants in each .dart file

Example usage in main.dart

Widget build(BuildContext context) {
    return MaterialApp(
      title: strings.appName,
      theme: theme,
      color: colors.primary,
      home: MyHomePage(),
    );

Licence

MIT

About

A folder scaffold inspired on Android's "res" folder.

Topics

Resources

Stars

Watchers

Forks

Languages