rad 0.4.0 rad: ^0.4.0 copied to clipboard
A zero-dependency frontend framework for writing web apps in plain Dart. Inspired from Flutter.
A simple click testing demo using Rad:
import 'package:rad/rad.dart';
void main() {
RadApp(
targetId: "output",
child: ClickTest(),
);
}
class ClickTest extends StatefulWidget {
bool isClicked = false;
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: _handleTap,
child: Text(isClicked ? "clicked!" : "click me"),
);
}
handleTap() {
setState(() {
isClicked = !isClicked;
});
}
}
For installing Rad please refer to package homepage