Coder Social home page Coder Social logo

hhy5277 / all_platform_example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rushio-consulting/all_platform_example

0.0 1.0 0.0 73.71 MB

Flutter example cross-platform application for mobile, desktop and web

Java 0.29% Ruby 3.66% Objective-C 0.57% Dart 7.67% Makefile 3.08% C++ 72.31% C 8.95% Swift 1.56% HTML 0.10% Batchfile 1.81%

all_platform_example's Introduction

All platform example

The repository goal is to provide an example of a cross-platform application (android, ios, linux, macos, windows, web) written in Flutter.

In this example we use API, that are different based on the platform, to save and load the value of the counter.

We use Mobx.dart to manage the state of the application.

WARNING: this is highly experimental and subject to change/bug/crash at every time.

Blog post with the detail on how it work https://medium.com/@segaud.kevin/flutter-cross-platform-a2371fe790e7.

How can I launch the application

1. Configuring Flutter

You will need to be on the master channel of Flutter

flutter channel master && flutter upgrade

2. Settings some env variable

You will need to set some environment variable to allow Flutter access new feature.

For linux :

export ENABLE_FLUTTER_DESKTOP=true
export FLUTTER_WEB=true
export CHROME_EXECUTABLE="google-chrome"

For macos :

export ENABLE_FLUTTER_DESKTOP=true
export FLUTTER_WEB=true

For windows :

TBD

3. Launching the application

You can launch the application with F5 on vscode for desktop and mobile.

If you want to test the application on the web you will need to use the command line.

some example:

  • Linux
flutter run -d linux
  • Web
flutter run -d web
  • MacOs

    CocoaPods needs to be installed. It is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins

    To install CocoaPods:

brew install cocoapods
pod setup

Launch on mac:

flutter run -d macos

4. Hm there is a bug :/

If you encounter a problem please create an issue here and we will see what we can do about it.

all_platform_example's People

Contributors

bwnyasse avatar kleak 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.