Skip to content
/ flutter_create Public template

A Flutter template with modular folder structure ready to start working directly on your project

License

Notifications You must be signed in to change notification settings

maheshj01/flutter_create

Repository files navigation

flutter_template

A Flutter Template to start working directly on your application. The counter app provided by flutter is great to start playing with flutter, But when it comes to building a real application, You do certain things that are very common to most of your applications This is created with an intention to save your time doing repetative work with your new project like creating folder structure, adding files to gitignore, adding localization networking capabilities. Doing these things with every new project is repetetive and time consuming. This template repo just helps you solve this problem.

By adding the minimal things that are required to most of the applications. Ofcourse, Everyone has their own requirement and style of maintaining their projects, so not everything in this template repo is required. But you can just fork and modify it the way you need it. So the next time you create a new flutter project you have your own template ready to go.

Feel free to fork this repo and modify this template as you like. If this template helps you save even 15 mins on your new project the goal is reached.

Things to do post fork

  1. Change the AppTitle

    Android

    a) navigate to file android/app/src/main/AndroidManifest.xml b) look for label named android:label

    IOS

    a) navigate to file ios/Runner/Info.plist

    b) look for

      <key>CFBundleName</key>
      <string>App Name</string>
    

    Still stuck look here

  2. Change the package name, The default package name is (com.example.flutter_create) Use search and replace feature of your IDE to get this done.

  3. If your app does not need localization delete lib/localization directory and also delete the corresponding packages from pubspec.yaml

  • flutter_localizations:
  • flutter_cupertino_localizations
  1. This template cannot run unless you generate the models by running this command. Look for lib/models/user_model.dart an example for generating json serializable is given there
flutter pub run build_runner build --delete-conflicting-outputs

flutter pub run build_runner watch // watches the file changes

for more look at the example file at lib/models/user_model.dart

  1. Go to pubspec.yaml and update the version, title and description, homepage, issue_tracker

  2. Help improve this template by suggesting a change that you think is required.

Contributing

Do you feel this template can be improved or needs some modification or has issues feel free to file a issue. This will help improve this template with time.

About

A Flutter template with modular folder structure ready to start working directly on your project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published