Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maheshj01/flutter_create

A Flutter template with modular folder structure ready to start working directly on your project
https://github.com/maheshj01/flutter_create

boilerplate flutter flutter-template minimal

Last synced: 11 minutes ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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
```
CFBundleName
App Name
```

Still stuck [look here](https://stackoverflow.com/questions/49353199/how-can-i-change-the-app-display-name-build-with-flutter)

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

4. 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`_

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

6. 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.