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

outdated

A zero-dependency frontend framework for writing web apps in plain Dart. Inspired from Flutter.

example/README.md

A simple click testing demo using Rad:

import 'package:rad/rad.dart';

void main() {
  RadApp(
    targetId: "output",
    child: ClickToggle(),
  );
}

class ClickToggle extends StatefulWidget {

  @override
  _ClickToggleState createState() => _ClickToggleState();
}

class _ClickToggleState extends State<ClickToggle> {
  bool isClicked = false;

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: _handleTap,
      child: Text(isClicked ? "on! click to turn off." : "click to turn on."),
    );
  }

  _handleTap() {
    setState(() {
      isClicked = !isClicked;
    });
  }
}

For installing Rad please refer to package homepage

57
likes
0
pub points
24%
popularity

Publisher

verified publishererlage.com

A zero-dependency frontend framework for writing web apps in plain Dart. Inspired from Flutter.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

meta

More

Packages that depend on rad