Skip to content

DanhDue/d3f_modularization

 
 

Repository files navigation

Flutter Modularization Project

=============================================

A Flutter Modularization Project base on GetX.

Introduction

A Flutter Modularization Project base on GetX.

Implementation

I. sync the workspace with git submodule

  1. checkout the workspace
  2. reset url for all modules with the "git submodule set-url" command.
  3. add the team remote to each module.
  4. checkout develop branch for all modules: git submodule foreach 'git checkout develop'
  5. pull the latest source code: git submodule foreach 'git pull remote_name develop' remote_name: remote name that is set in step 3.

II. setup the environment development

Flutter version management is a big trouble that any Flutter developers have to face in their development process. So, in this project, I have used the FVM(Flutter Version Management) package to manage it easily, rapidly, and conveniently.

To install this app, you can see at FVM official page. Here, I only show you some steps to run this sample.

  1. Flutter version 2.10.3 is used for this project:
fvm use 2.10.3
  1. FVM setup for the Android Studio:

  1. FVM setup for the VSCode: Create a settings.json file on ~/.vscode folder and paste content below:
{
  "dart.flutterSdkPath": ".fvm/flutter_sdk",
  // Remove .fvm files from search
  "search.exclude": {
    "**/.fvm": true
  },
  // Remove from file watching
  "files.watcherExclude": {
    "**/.fvm": true
  },
  "terminal.integrated.fontFamily": "MesloLGS NF",
}

Libraries Used

  • Third party
    • GetX fast, stable, extra-light and powerful Flutter framework.
    • And a few other libraries ....

Screenshots

  1. Coverage Overview.

Coverage Overview

  1. Unit Test Detail for a ViewModel.

Unit Test Detail for ViewModel

  1. Unit Test Detail for a Repository

Unit Test Detail for Repository

References

License

Copyright 2022 DanhDue ExOICTIF, [email protected]

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

d3f_modularization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%