fltk 0.0.5

  • README.md
  • Installing
  • Versions
  • 37

Dart bindings for FLTK!

Yes! FLTK in Dart, just like this:

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

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

Integrations

  • 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!

Architecture

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.

Considerations

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

1. Depend on it

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


dependencies:
  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

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
35 / 100
Overall score:
Weighted score of the above. [more]
37

Platforms

Detected platforms: unsure

Error(s) prevent platform classification.

Suggestions

  • Fix dependencies in pubspec.yaml.

    Running pub upgrade failed with the following output:

    ERR: Permission denied
       Command: tar --version
    
  • Fix platform conflicts.

    Make sure none of the libraries use mutually exclusive dependendencies.

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Fix issues reported by dartanalyzer.

    dartanalyzer reported 1 error(s) and 0 warning(s).

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use fltk.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

Dependencies

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