jamalbaharun / flutter_everywhere_template

Flutter template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flutter Everywhere

Codemagic build status

Overview

The goal of this repo is to have everything you need to start with flutter desktop + mobile simply by forking the project. This will no longer be necessary once flutter create supports desktop and web.

Fork this project or click 'Use Template' to get started! :)

You need to be on the flutter master or dev channel for this project to work!

  • Update Flutter flutter channel master; flutter upgrade

Getting Started - Mobile

  1. cd mobile

  2. Run flutter build ios || flutter build apk

Getting Started - Desktop

The desktop support is provided by flutter-desktop-embedding. For any issues and setup instructions please refer to the docs here.

  1. cd desktop

  2. Update your $PATH export ENABLE_FLUTTER_DESKTOP=true

  3. Run flutter precache

  4. Run flutter run -d macos || flutter run -d windows || flutter run -d linux

Getting Started - Web

Flutter for Web is provided by flutter_web. For Issues and Setup Info refer to the docs here.

  1. cd web

  2. Update your $PATH export FLUTTER_WEB=true

  3. Run flutter packages global run webdev serve

Getting Started - Shared and Core

Core

This is the core part of your app that can be shared between web, mobile and command-line versions of your app. This part cannot depend on the Flutter SDK.

Use this for constants, classes, abstract classes and utilites.

  1. Run cd core

  2. Run flutter packages pub run build_runner watch —delete-conflicting-outputs

Shared

This is the part of the app that can share everything used in the Flutter SDK. Like Models, Themes and Locale. Shared includes core.

  1. Run cd shared

About

Flutter template


Languages

Language:JavaScript 94.2%Language:Dart 2.3%Language:C++ 0.9%Language:Makefile 0.8%Language:Objective-C 0.5%Language:Batchfile 0.4%Language:Swift 0.4%Language:HTML 0.4%Language:Kotlin 0.1%