RAL 1.14.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 84

Build Status

RAL

Runtime abstraction layer

Usage

A simple usage example:

import 'package:RAL/html_i.dart'
if (dart.library.io) 'package:RAL/io/html_io.dart'
if (dart.library.html) 'dart:html' as html;

main() {
  new html.MessageEvent("PreviousSession", data: JSON.encode({}));
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

1.14.0

  • Add Document.body,Node.append(), IFrameElement, CssStyleDeclaration.display, CssClassSet implements Set<String>

1.13.0

  • Add Window.document, Element.setInnerHtml, Element.appendHtml, Document.getElementsByTagName

1.12.0

  • Add Location.reload()

1.11.0

  • Add CssStyleDeclaration.letterSpacing

1.10.0

  • Add Element.hidden

1.9.1

  • Fix CanvasRenderingContext2D.globalCompositeOperation added to interface to

1.9.0

  • Add CanvasRenderingContext2D.globalCompositeOperation

1.8.0

  • Add KeyboardEvent

1.7.0

  • Add MouseEvent.client
  • Add Element.getBoundingClientRect
  • Add Element.classes
  • Add CssStyleDeclaration.top

1.6.0

  • Add default implementation of CanvasElement with basically initialized fields
  • Add default mouse and scroll event streams
  • Add CanvasRenderingContext2D.quadraticCurveTo

1.5.6

  • Add Element.focus()

1.5.5

  • Add Element.onDoubleClick
  • Add Document with onMouseDown, onMouseMove, onMouseLeave, onMouseUp, onMouseWheel, onDoubleClick
  • Add to Node: ownerDocument

1.5.4

  • Add Element.scrollHeight and Element.scrollWidth

1.5.3

  • Add CanvasRenderingContext2D.rotate

1.5.2

  • Fixed all hints of dart analyzer
  • Add .travis.yaml and Travis status to README
  • Suppress error with missing function "_fromBrowserObject(object);" in lib/io/js/src/js_object.dart

1.5.1

  • Fixed bunch of dart errors

1.5.0

  • Add browser_detect_i with Browser
  • Add querySelector
  • Add to Window: devicePixelRatio, onResize, animationFrame
  • Add to Element: onMouseDown, onMouseMove, onMouseLeave, onMouseUp, onScroll, onMouseWhee, scrollTop, clientWidth, clientHeight, offsetWidth, scrollLeft, style
  • Add UIEvent, MouseEvent, WheelEvent, TextMetrics, CanvasPattern, CanvasRenderingContext2D , HtmlElement, CssStyleDeclaration, CssClassSet, CanvasElement

1.4.0

  • Add allowInterop, allowInteropCaptureThis
  • Add Window.Location interface

1.3.0

  • Add window.sessionStorage

1.2.0

  • Add window.open method

1.0.0

  • Initial version, created by Stagehand
  • initial dart:html
  • initial dart:js
  • initial package:js

1. Depend on it

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


dependencies:
  RAL: "^1.14.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:RAL/browser_detect_i.dart';

import 'package:RAL/html_i.dart';

import 'package:RAL/io/html_io.dart';

import 'package:RAL/io/js_io.dart';

import 'package:RAL/io/package_js_io.dart';

import 'package:RAL/js_i.dart';

import 'package:RAL/package_js_i.dart';
        
Version Uploaded Documentation Archive
1.14.0 Feb 21, 2018 Go to the documentation of RAL 1.14.0 Download RAL 1.14.0 archive
1.13.0 Jan 9, 2018 Go to the documentation of RAL 1.13.0 Download RAL 1.13.0 archive
1.12.0 Nov 29, 2017 Go to the documentation of RAL 1.12.0 Download RAL 1.12.0 archive
1.11.0 Nov 2, 2017 Go to the documentation of RAL 1.11.0 Download RAL 1.11.0 archive
1.10.0 Nov 2, 2017 Go to the documentation of RAL 1.10.0 Download RAL 1.10.0 archive
1.9.1 Oct 30, 2017 Go to the documentation of RAL 1.9.1 Download RAL 1.9.1 archive
1.8.0 Oct 26, 2017 Go to the documentation of RAL 1.8.0 Download RAL 1.8.0 archive
1.7.0 Oct 25, 2017 Go to the documentation of RAL 1.7.0 Download RAL 1.7.0 archive
1.6.0 Oct 11, 2017 Go to the documentation of RAL 1.6.0 Download RAL 1.6.0 archive
1.5.6 Oct 8, 2017 Go to the documentation of RAL 1.5.6 Download RAL 1.5.6 archive

All 17 versions...

Analysis

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

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

  • completed on Feb 21, 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]
70 / 100
Health:
Code health derived from static analysis. [more]
98 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
84

Platforms

Detected platforms: Flutter, other

Platform components identified in package: io.

Suggestions

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

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use RAL.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0
Dev dependencies
test >=0.12.0 <0.13.0