oref_flutter 0.3.2 copy "oref_flutter: ^0.3.2" to clipboard
oref_flutter: ^0.3.2 copied to clipboard

Oref is a lightweight, high-performance reactive programming library for Flutter.

example/main.dart

import 'package:flutter/material.dart';
import 'package:oref_flutter/oref_flutter.dart';

void main() {
  runApp(const App());
}

class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    final count = ref(context, 0);

    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Text('Count: ${count.value}'),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () => count.value++,
          child: Icon(Icons.add),
        ),
      ),
    );
  }
}
1
likes
150
points
28
downloads

Publisher

verified publisherodroe.dev

Weekly Downloads

Oref is a lightweight, high-performance reactive programming library for Flutter.

Homepage
Repository (GitHub)
View/report issues

Topics

#state #reactive #ref #derived #effect

Documentation

Documentation
API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

_octr, flutter, oncecall, oref

More

Packages that depend on oref_flutter