Git Product home page Git Product logo

flutter-engine-builder's Introduction

flutter-engine-builder

Automate flutter engine build on ubuntu like distro.

Docker Setup

Install Docker

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt-get update
sudo apt install -y docker-ce
sudo usermod -aG docker ${USER}
su - ${USER}

build the docker image

make docker-image

start the container

make start

clone the flutter engine

# edit the makefile to clone the repository and the branch you want
make clone-engine

build the engine

make build-engine

copy the compiled engine

make copy-binaries

stop the container

make stop

Flutter tool

use myflutter.py to use the compiled engine

python myflutter.py doctor
mkdir projects
cd projects
../myflutter.py create -t plugin --platforms=linux testapp
cd testapp/example
../../../myflutter.py run -d linux

flutter-engine-builder's People

Contributors

rodjjo avatar

Watchers

 avatar  avatar

flutter-engine-builder's Issues

exemplo flutter external texture

Olá amigo, vi que você fez um teste em flutter/engine#24916 (comment)

Você poderia me dizer como devo iniciar o FlTexture*? Atualmente meu plugin está assim:

if (strcmp(method, "registerTexture") == 0) {
    FlTexture* texture = nullptr; // How do I initiate this?
    GdkWindow* window = gtk_widget_get_parent_window(self->fl_view);  //?
    GError* error; //?
    GdkGLContext* context = gdk_window_create_gl_context(window, &error); //?
    //
    FlTextureRegistrar* texture_registrar = self->texture_registrar;
    int64_t texture_id = fl_texture_registrar_register_texture(texture_registrar, texture);
    g_autoptr(FlValue) result = fl_value_new_int(texture_id);
    response = FL_METHOD_RESPONSE(fl_method_success_response_new(result));

Se puder compartilhar o exemplo, seria melhor ainda.

Obrigado!

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.