fletch 0.3.0 copy "fletch: ^0.3.0" to clipboard
fletch: ^0.3.0 copied to clipboard

outdatedDart 1 only

A jQuery-like library implemented using common Dart patterns.

Fletch Build Status #

jQuery for Dart #

Fletch is a Dart library aiming to provide similar functionality to jQuery. However, Fletch is not designed to be API-compatible with jQuery, instead preferring to take advantage of Dart features and design patterns.

For example, here is a snippet of jQuery:

$("<a>").text("Dart is cool!")
        .attr("href", "https://www.dartlang.org/")
        .style("font-weight", "bold")
        .appendTo("body");

Here is the equivalent code in Fletch:

$("<a>")..text = "Dart is cool!"
        ..attr["href"] = "https://www.dartlang.org/"
        ..style["font-weight"] = "bold"
        ..appendTo("body");

Full API documentation is available here.

Fletch is very much a work in progress. So far, Fletch supports the most common cases for manipulating the DOM, styles, attributes, events, and form data. Fletch should be considered alpha quality, as the public-facing API may change radically between releases.

Installing #

Fletch is available on pub. Add "fletch" as a dependency and run pub install. Then, just import Fletch into your code with import 'package:fletch/fletch.dart'; and you're all set!

Fletch is released under the ISC License, which is functionally equivalent to the BSD-2 and MIT licenses. See the LICENSE file for more information.

3
likes
25
points
123
downloads

Publisher

verified publishermahawarkartikey.in

Weekly Downloads

A jQuery-like library implemented using common Dart patterns.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

ISC (license)

Dependencies

browser

More

Packages that depend on fletch