Skip to content

A Flutter project structured with Riverpod, Freezed, GoRouter.

Notifications You must be signed in to change notification settings

YamamotoDesu/riverpod_structure

 
 

Repository files navigation

Riverpod structure

A flutter project built on MVVM design pattern, structured with riverpod, shared preferences, retrofit, goRouter.

Project Setup

Things to do when you setup your project with riverpod structure:

1- After replacing the Manifest Make sure of changing android:label, then change host name for deeplinking from ../android/app/src/main/Android.Manifest.xml for android, and search for (), then change the host name in http and https. and same for ios from ..ios/Runner/info.plist, and search for flutterbooksample.com, then change the name to your host name.

2- run these commands: flutter pub run change_app_package_name:main , flutter pub global run rename --bundleId , flutter pub global run rename --appname , in search replace (package:app) with (package:) to change your app package name and name.

3- change app name from pubspec.yaml and from main.dart.

4- dart pub global activate flutter_gen & flutter pub global activate build_runner & flutter pub run build_runner build.

5- add this permission ()

6- dart run custom_lint

Install custom_lint for all projects

dart pub global activate custom_lint

run custom_lint's command line in a project

custom_lint

7- update the assetslinks.json file

9- follow the official build and release guide (https://docs.flutter.dev/deployment/android) and then update the key.properties.

10- To get the release certificate fingerprint on MacOs: (keytool -list -v
-alias -keystore )

11- To get the debug certificate fingerprint on MacOs: (keytool -list -v
-alias androiddebugkey -keystore ~/.android/debug.keystore)

12- follow this video for ios notification config (https://youtu.be/Hg1ZJjWzRxs?feature=shared)

13- if web run these commands (gcloud init) && (gsutil cors set cors.json storage bucket)

14- for hosting assetslink for deeplinking follow this article: (https://medium.com/androiddevelopers/android-app-links-deploy-assetlinks-json-in-minutes-d7082dffcac)

About

A Flutter project structured with Riverpod, Freezed, GoRouter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 75.5%
  • C++ 11.1%
  • CMake 8.9%
  • Ruby 1.3%
  • HTML 0.9%
  • Swift 0.8%
  • Other 1.5%