atom_flutter 0.0.3 copy "atom_flutter: ^0.0.3" to clipboard
atom_flutter: ^0.0.3 copied to clipboard

A library that provides composable, reactive primitives for Flutter inspired by Signals and Runes.

example/lib/main.dart

// 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),
        ),
      ),
    );
  }
}
5
likes
150
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A library that provides composable, reactive primitives for Flutter inspired by Signals and Runes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

atom, flutter

More

Packages that depend on atom_flutter