fltk 0.0.5

  • README.md
  • Installing
  • Versions
  • 0

Dart bindings for FLTK!

Yes! FLTK in Dart, just like this:

import 'package:fltk/fltk.dart' as fl;

int main() {
  var window = new fl.Window(350, 180, 'FLTK');
  var box = new fl.Box(20, 40, 310, 100, 'Hello, World!');
  return fl.run();


  • image
  • dartgl
  • cairodart

State of the art

This library is mostly experimental and a way to spend some time. Currently only a subset of features are supported (the exiting ones like loading images, displaying OpenGL graphics, and asynchronous event streams). The majority of widgets is not yet ported to Dart. However a sophisticated code generation program is already in place and adding simple widgets is pretty easy. If this library is useful for you and you need more widgets, feel free to open an issue!


Most bindings are automatically generated from YAML descriptions of the FLTK functions and classes. Class bindings do not create the target class directly, instead they create a wrapper class that takes care of draw and callback events.


Maybe we should use static linking for the FLTK libraries so this extension can be used without locally compiling FLTK.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  fltk: ^0.0.5

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:fltk/fltk.dart';
Version Uploaded Documentation Archive
0.0.5 Aug 31, 2016 Go to the documentation of fltk 0.0.5 Download fltk 0.0.5 archive
0.0.4 Aug 16, 2016 Go to the documentation of fltk 0.0.4 Download fltk 0.0.4 archive
0.0.3 Aug 14, 2016 Go to the documentation of fltk 0.0.3 Download fltk 0.0.3 archive
0.0.2 Aug 13, 2016 Go to the documentation of fltk 0.0.2 Download fltk 0.0.2 archive
0.0.1 Aug 13, 2016 Go to the documentation of fltk 0.0.1 Download fltk 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0