rad 1.8.0 copy "rad: ^1.8.0" to clipboard
rad: ^1.8.0 copied to clipboard

Platformweb

A zero-dependency frontend framework for creating high-performant web apps using Dart.

1.8.0 #

New

  • (Added): A new widget mounting mechanism that renders more correct markup.
  • (Added): A new widget building mechanism that is fast and consume less memory.
  • (Added): A new set of cleaning optimisations that make widget disposing more fast.

Bug fixes

  • (Fixed): Rendering incorrect markup(rare cases).
  • (Fixed): Hook dispatcher not getting cleaned up on scope unmount.
  • (Fixed): Router altering value segments when operating on child navigators.

1.7.0 #

New

  • (Added): HTML's Section widget.
  • (Added): HTMLWidgetBase to public API.
  • (Added): Entries for all the remaining tags in the DomTagType enum.

Bug fixes

  • (Fixed): InheritedWidget: Detached elements getting notified just before getting cleaned.

1.6.0 #

New

  • (Added): Navigator.onDispose callback.
  • (Added): MountOptions to runApp(for controlling inline-styles etc).

Bug Fixes

  • (Fixed): Router matching non-exact parts.
  • (Fixed): Router pushing incorrect paths(window.location).
  • (Fixed): Router ignoring initial on-pop event.
  • (Fixed): InheritedWidget: Orphan dependents are not getting cleaned up.
  • (Fixed): InheritedWidget: Dispatch order of update notifications is undefined(now LIFO).
  • (Fixed): RenderElement: visitAncestorElements() traversing temporary elements.
  • (Fixed): RenderElement: traverseAncestorElements() traversing temporary elements.
  • (Fixed): RenderElement: Call order of didRender & didUpdate is undefined for nested elements.
  • (Fixed): RouterRenderElement: Orphan dependents are not getting cleaned up.

1.5.0 #

Visual-JSX, a Dart to JSX Visualizer.

Visual-JSX is a feature designed to make managing HTML code written in Dart easier. It transforms HTML widgets into a visually appealing, JSX-like syntax, making it easier to understand and maintain your HTML widgets. You'll find it extremely helpful as a visual aid when working with HTML inside the Dart code.

HTML2Rad, a streamlined method for importing HTML templates into Rad.

No more manual porting of HTML templates to HTML widgets! HTML2Rad allows you to convert HTML markup directly into Rad's HTML widgets with few clicks. Both Visual-JSX and HTML2 are aimed at enhancing development experience and increasing productivity. These two features are published together as an extension that's available for install only on Visual Studio Code(for now). Please refer to this document for usage details.

Previews #

  • Click to See Visual-JSX's Preview

    Visual-JSX Preview

  • Click to See HTML2Rad's Preview

    HTML2Rad Preview

Bug fixes

  • (Fixed): Router incorrectly pushing the Route.name to the address bar instead of the Route.path.
  • (Fixed): Calling NavigatorState.open inside onInit, results in multiple routes being left open.

1.4.0 #

Refs, an easy and predictable way for accessing DOM nodes.

Inspired from Callback-Refs in React, Refs in Rad provides an easy and predictable way to access DOM elements that are associated with Rad widgets. Normally Rad takes cares of creating and updating DOM for you but there are many reasons why you would want to access the actual DOM elements. Common use-cases are managing focus (critical for accessibility) and triggering imperative animations.

1.3.0 #

Hooks, use features such as state inside widget-functions.

Hooks(inspired by React's Hooks) lets you use state and other features without writing classes(such as StatefulWidget). This release includes few ready-to-use hooks and a easy yet powerful Hooks API that you can use to create your own custom hooks. We've also released a hooks package containing implementations of commonly used React Hooks(see rad_hooks).

1.2.0 #

RenderEvents, a event system for RenderElements.

RenderEvents are the events that framework will emit when it interacts with a RenderElement. Just like we can add event listeners for user interactions on DOM elements, we can now add event listeners for framework interactions on RenderElements. Similar to DOM events, we've different types of RenderEvents for different types of interactions which are listed below:

  • didRender is a event that's emitted after framework finishes rendering the output of render to the DOM.
  • didUpdate is a event that's emitted after framework finishes rendering the output of update to the DOM.
  • willUnMount is a event that's emitted when framework is about to remove the widget from the DOM.
  • didUnMount is a event that's emitted after framework finishes removing the widget from the DOM.

RenderElements can decide to listen to a particular or all render events by adding event listeners.

Comparing RenderEvents with DOM events, there are few differences & restrictions:

  • RenderEvents do not have capture/bubble phase.
  • RenderEvents are meant to be listened internally inside RenderElements.
  • Listeners for RenderEvents can be attached only during initial render, and cannot be updated.

These restrictions are temporary and we'll lift them when needed.

RenderEvents are meant to solve the problem of limited control over lifecycle in RenderElements. Previously we were providing a sub-class WatchfulRenderElement with hardcoded lifecycle. Now, using the new RenderEvents API, you can add as much or as little lifecycle as you want, to any RenderElement(widget). This new API effectively makes WatchfulRenderElement obsolete but we'll keep it for backward compatibility at zero-cost(it's also using the new RenderEvents API from now on).

Bug fixes

  • (Fixed): Renderer reconciling all sibling widgets on dependent updates(sometime disposing siblings because of that).

1.1.0 #

New

  • (Added): State.afterMount: Gets called after framework finishes rendering widget to DOM.
  • (Added): State.afterUpdate: Gets called after framework finishes re-rendering widget to DOM.
  • (Added): State.afterUnMount: Gets called after framework finishes removing widget from DOM.
  • (Added): State.afterMount: Gets called after framework finishes rendering widget to DOM.
  • (Added): State.afterUpdate: Gets called after framework finishes re-rendering widget to DOM.
  • (Added): State.afterUnMount: Gets called after framework finishes removing widget from DOM.
  • (Added): WatchfulRenderElement.afterUpdate: Gets called after framework finishes re-rendering widget to DOM.
  • (Added): WatchfulRenderElement.dispose: Gets called after framework is about to remove it from DOM.
  • (Added): EmittedEvent.nativeEvent that returns underlying native event.

Bug fixes

  • (Fixed): WatchfulRenderElement.afterUnMount getting called before framework finishes removing widget from DOM(while it should get called after the complete removal of widget)

1.0.2 #

Bug fixes

  • (Fixed): Value not setting/updating correctly on following Input widgets: InputUrl, InputTime, InputTelephone, InputSearch, InputRange, InputPassword, InputNumber, InputMonth, InputEmail, InputText, InputDateTimeLocal, InputDate and InputColor.
  • (Fixed): InputHidden missing from public API.

1.0.1 #

  • Stable release.
  • If curious, you can checkout development change log here.
58
likes
160
points
259
downloads

Publisher

verified publishererlage.com

Weekly Downloads

A zero-dependency frontend framework for creating high-performant web apps using Dart.

Repository (GitHub)
View/report issues
Contributing

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

meta

More

Packages that depend on rad