setup 0.0.1 copy "setup: ^0.0.1" to clipboard
setup: ^0.0.1 copied to clipboard

Setup - A Progressive reactivity framework. An approachable, performant, and versatile framework for building Flutter user interfaces.

example/main.dart

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

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

class CounterApp extends SetupWidget {
  const CounterApp();

  @override
  Widget Function() setup() {
    final count = ref(0);
    void increment() => count.value++;

    return () {
      return MaterialApp(
        home: Scaffold(
          body: Center(child: Text('Count: ${count.value}')),
          floatingActionButton: FloatingActionButton(
            onPressed: increment,
            child: Icon(Icons.plus_one),
          ),
        ),
      );
    };
  }
}
1
likes
0
pub points
25%
popularity

Publisher

verified publisherodroe.dev

Setup - A Progressive reactivity framework. An approachable, performant, and versatile framework for building Flutter user interfaces.

Homepage
Repository (GitHub)
View/report issues

Topics

#framework #reactive #composition #state-management #user-interface

Funding

Consider supporting this project:

github.com

License

unknown (license)

Dependencies

flutter, meta, oref

More

Packages that depend on setup