A OpenGLES context canvas in flutter.

Related tags

Image gl_canvas
Overview

gl_canvas

A OpenGLES context canvas in flutter.

Usage

// New a GLCanvas require a builder
GLCanvas(
    builder: _builder,
)

The builder should return a GLCanvasController. and the builder must be a top level function or a static function.

class CanvasController extends GLCanvasController {
    LibOpenGLES gl = LibOpenGLES(
      Platform.isAndroid ?
      DynamicLibrary.open("libGLESv2.so"):
      DynamicLibrary.process()
  );


    @override
    bool shouldRender(GLContext ctx, int tick) => false;

    void onFrame(GLContext ctx, int tick) {
        gl.glClearColor(0, 1.0, 0, 1.0);
        gl.glClear(GL_COLOR_BUFFER_BIT);
        //...
    }

    @override
    void dispose() {}
}

GLCanvasController is running on a isolate, in this isolate you can use the OpenGLES API directly. In my example I using opengl_es_bindings to call the OpenGLES.

You might also like...

A Flutter package for manipulating bitmaps

A Flutter package for manipulating bitmaps

Flutter Bitmap A minimalist Flutter package to perform fast bitmaps operations. The focus here is to provide a cool bitmap manipulation interface. The

Dec 23, 2022

A flutter plugin which provides Crop Widget for cropping images.

A flutter plugin which provides Crop Widget for cropping images.

A flutter plugin which provides Crop Widget for cropping images. crop_your_image provides only minimum UI for deciding cropping area inside images. Other UI parts, such as "Crop" button or "Change Aspect Ratio" button, need to be prepared by each app developers.

Dec 31, 2022

Image caching system for flutter

image_cacheing image_cacheing is an image caching package. It is currently tested for Android applications. ImageCacheing widget takes url as a param.

May 31, 2021

A simple and easy flutter demo to crop image

flutter_image_crop A simple demo to crop image on flutter easily. A Chinese version of this document can be found here Flutter_image_crop Plugin will

Jul 8, 2021

A flutter package which makes it easy to track a series of images.

A flutter package which makes it easy to track a series of images.

A flutter package which makes it easy to track a series of images.

Oct 7, 2022

A flutter tool to generate beautiful code snippets in the form of an image.

A flutter tool to generate beautiful code snippets in the form of an image.

A flutter tool to generate beautiful code snippets in the form of an image.

Jan 18, 2022

Simple and effective cross platform image saver for flutter, supported web and desktop

Simple and effective cross platform image saver for flutter, supported web and desktop

Oct 5, 2022

The iMateral Pro Icon pack available as Flutter Icons

The iMateral Pro Icon pack available as Flutter Icons

imaterial_pro_flutter This flutter package allows you to use the IMaterial Pro Icons. 🎖 Installation In the dependencies: section of your pubspec.yam

Oct 5, 2022

Flutter package for Image Carousel It is an image carousel widget.

Flutter package for Image Carousel It is an image carousel widget.

Snapshot Carousel Flutter package for Image Carousel It is an image carousel widget. Supported platforms Flutter Android Flutter iOS Flutter web Flutt

Jun 3, 2021
Comments
  • Apply transition

    Apply transition

    Hi @gsioteam

    Firstly thank for your repo,

    Could you give me a way to handle Transition by using your plugin? like this https://gl-transitions.com

    I want to implement transform between 2 image like gl transitions

    Thanks you so much

    opened by quochuynh67 0
Owner
null
Uses a Canvas to create a fluid-style navigation bar with flutter

fluid_nav_test_project Fluid Button Bar (null safety) Uses a Canvas to create a fluid-style navigation bar that has a fun bouncy feel to it; also show

Promise Amadi 5 Nov 9, 2022
A simple Flutter Package to Mimic iMessage Image Picker for Flutter

A simple Flutter Package to Mimic iMessage Image Picker for Flutter

Paras Jain 64 Dec 26, 2022
A flutter carousel widget, support infinite scroll, and custom child widget.

carousel_slider A carousel slider widget. Features Infinite scroll Custom child widgets Auto play Supported platforms Flutter Android Flutter iOS Flut

serenader 1.4k Dec 30, 2022
A Flutter widget that paints an image and moves it at a slower speed than the main scrolling content.

A Flutter widget that paints an image and moves it at a slower speed than the main scrolling content. Installation Add dependency to your pubspec.yaml

Anatoly Pulyaevskiy 272 Dec 23, 2022
📸 Easy to use yet very customizable zoomable image widget for Flutter, Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interacive images and other stuff such as SVG.

Flutter Photo View A simple zoomable image/content widget for Flutter. PhotoView enables images to become able to zoom and pan with user gestures such

Fire Slime Games 1.7k Jan 3, 2023
SVG parsing, rendering, and widget library for Flutter

flutter_svg Draw SVG (and some Android VectorDrawable (XML)) files on a Flutter Widget. Getting Started This is a Dart-native rendering library. Issue

Dan Field 1.5k Jan 6, 2023
A Flutter plugin for Android and iOS supports cropping images

Image Cropper A Flutter plugin for Android and iOS supports cropping images. This plugin is based on two different native libraries so it comes with d

HungHD 891 Dec 28, 2022
Download, cache and show images in a flutter app

Cached network image A flutter library to show images from the internet and keep them in the cache directory. How to use The CachedNetworkImage can be

Baseflow 2.1k Jan 3, 2023
Flutter plugin that allows you to display multi image picker on iOS and Android. 👌🔝🎉

IMPORTANT: This repository has been archived and no longer mantained. As I don't have time anymore to work on the package it became very outdated. For

Radoslav Vitanov 898 Apr 29, 2021
Use lottie in flutter for both iOS and Android

flutter_lottie Use Lottie in Flutter. Supports both iOS and Android using lottie-ios and lottie-android Current Status Supports most features that bot

Cameron Smith 160 Nov 25, 2022