Giter Club home page Giter Club logo

flutter-glfw-embedding's Introduction

Flutter Embedder Engine GLFW Example

Description

This is an example of how to use Flutter Engine Embedder in order to get a Flutter project rendering in a new host environment. The intended audience is people who need to support host environment other than the ones already provided by Flutter. This is an advanced topic and not intended for beginners.

In this example we are demonstrating rendering a Flutter project inside of the GUI library GLFW. For more information about using the embedder you can read the wiki article Custom Flutter Engine Embedders.

Running Instructions

The following example was tested on MacOSX but with a bit of tweaking should be able to run on other *nix platforms and Windows.

The example has the following dependencies:

In order to build and run the example you should be able to go into this directory and run ./run.sh.

Troubleshooting

There are a few things you might have to tweak in order to get your build working:

  • Flutter Engine Location - Inside the CMakeList.txt file you will see that it is set up to search for the header and library for the Flutter Engine in specific locations, those might not be the location of your Flutter Engine.
  • Pixel Ratio - If the project runs but is drawing at the wrong scale you may have to tweak the kPixelRatio variable in FlutterEmbedderGLFW.cc file.
  • GLFW Location - Inside the CMakeLists.txt we are searching for the GLFW library, if CMake can't find it you may have to edit that.

flutter-glfw-embedding's People

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.