atom_flutter 0.0.3 atom_flutter: ^0.0.3 copied to clipboard
A library that provides composable, reactive primitives for Flutter inspired by Signals and Runes.
// ignore_for_file: avoid_print
import 'package:atom_flutter/atom_flutter.dart';
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends AtomWidget {
App({super.key});
final count = atom(0);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Center(
child: TextButton(
child: Text('${count.value}'),
onPressed: () => count.update((value) => value + 1),
),
),
);
}
}