RAL 1.16.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 70

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

  • Add Document.onClick and Element.onClick

1.15.0

  • Add window.navigator, evt.metaKey for both MouseEvent and KeyboardEvent, evt.ctrlKey for KeyboardEvent, and evt.button for MouseEvent

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.16.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.16.0 Apr 11, 2018 failed Download RAL 1.16.0 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

All 18 versions...

Analysis

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
66 / 100
Health:
Code health derived from static analysis. [more]
58 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
97 / 100
Overall score:
Weighted score of the above. [more]
70
Learn more about scoring.

Platforms

Detected platforms: Flutter, other

Platform components identified in package: io.

Suggestions

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 6 errors 18 hints.

    Strong-mode analysis of lib/html_i.dart failed with the following error:

    line: 482 col: 7
    Missing concrete implementations of 'Iterable.followedBy', 'Iterable.whereType', 'Set.cast' and 'Set.retype'.

    Strong-mode analysis of lib/io/html/src/storage.dart failed with the following error:

    line: 3 col: 7
    Missing concrete implementations of 'Map.addEntries', 'Map.cast', 'Map.map', 'Map.removeWhere' and 4 more.

    Similar analysis of the following files failed:

    • lib/browser_detect_i.dart (hint)
    • lib/io/html/src/window.dart (hint)
    • lib/io/html_io.dart (hint)
    • lib/io/js/src/js_array.dart (hint)
    • lib/io/js/src/js_function.dart (hint)
    • lib/io/js/src/js_object.dart (hint)
    • lib/io/js_io.dart (hint)
    • lib/io/package_js_io.dart (hint)
    • lib/js_i.dart (hint)
    • lib/package_js_i.dart (hint)
  • 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