Skip to content

Conversation

@medz
Copy link

@medz medz commented Sep 24, 2025

Oref is very cool.

import 'package:oref/oref.dart';

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

  @override
  Widget build(BuildContext context) {
    final count = signal(context, 0);
    void increment() => count(count() + 1);

    return Column(children: [
      Text('Count: ${count()}'),
      TextButton(
        onPressed: increment,
        child: Text('click me'),
      )
    ]);
  }
}

  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.

@johnpryan
Copy link
Contributor

Thank you for the PR, could you file an issue first? We generally look for pub.dev metrics that indicate package popularity before we add it as a default package in DartPad. Thank you!

@johnpryan johnpryan closed this Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants