Giter Site home page Giter Site logo

flutter-boilerplate's Introduction

flutter-boilerplate

Flutter Boilerplate

Install

fvm install
fvm flutter pub get

Run

dev

sh/run_debug_development.sh <deviceId>

prod

sh/run_release_production.sh <deviceId>

ファイル構造

lib/common

  • 共通の色/enum/extensionなどなど

lib/domain

lib/domain/entities

  • Entity定義
  • freezed & json_serializableを使用
  • 更新&新規作成時は↓のコマンドを実行
sh/build_runner.sh

lib/domain/notifiers

  • シングルトンの状態管理
  • freezed + stateNotifier
  • 更新&新規作成時は↓のコマンドを実行
sh/build_runner.sh

lib/domain/repository

  • data_sourceの実行クラスの関数定義

lib/domain/repository/data_source

  • 実際に処理するところ

lib/domain/dto

  • repositoryに関するデータ

lib/presentation

lib/presentation/pages

  • 各ページの実装部分
〇〇/〇〇_page.dart          : UI実装
   /〇〇_page_notifier.dart : ページで使うstate & ロジック (freezed + stateNotifier)
  • 更新&新規作成時は↓のコマンドを実行
sh/build_runner.sh

lib/presentation/widgets

  • 共通コンポーネント/widget

flutter-boilerplate's People

Contributors

yuro241 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.