Giter Club home page Giter Club logo

flutter-app-template's Introduction

flutter-app-template Join Gitter Chat Channel

Example app built using flutter-rs.

screenshot

  • Support Hot reload
  • MethodChannel, EventChannel
  • Async runtime using tokio
  • System dialogs
  • Clipboard support
  • Cross platform support, Runs on mac, windows, linux
  • Support distribution format: (windows NSIS, mac app, mac dmg, linux snap)

Get Started

Install requirements

  • Rust

  • libglfw:

    • Install on Mac with: brew install glfw
    • Install on linux with apt install libglfw3
  • cmake:

    • Install on Mac with: brew install cmake
    • Install on linux with apt install cmake
  • flutter sdk

Config flutter engine version

flutter-rs need to know your flutter engine version. You can set this using any of the following methods.

  • If you have flutter cli in your PATH, you're set.
  • Set FLUTTER_ROOT environment variable to your flutter sdk path
  • Set FLUTTER_ENGINE_VERSION environment variable to your engine version

Clone this repo

git clone [email protected]:gliheng/flutter-app-template.git flutter-app
cd flutter-app
python ./scripts/init.py

Develop

  • To develop with cli hot-reloading, simple run:

    python ./scripts/run.py

  • To debug using VS Code dart tools:

    Start process using cargo run

    Then attach to debugger using flutter attach --debug-uri=DEBUG_URI

Distribute

  • To build distribution, use: python ./scripts/build.py mac|dmg|nsis|snap

    Note: Build scripts are written in python3. Install python depenendencies using pip3 install -r scripts/requirements.txt Build on Windows require NSIS3

flutter-app-template's People

Contributors

comigor avatar gliheng avatar mr-tron 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.