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

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

Setup is a Dart framework for building user interfaces. It is built on top of Flutter and provides a declarative, reactive programming model. It helps you develop Flutter applications efficiently.

  • Reactivity: Uses the oref reactivity system for efficient UI rebuilding.
  • Performance: Code in setup() is executed only once, with automatic dependency collection and release without manual handling.
  • Composition API: Better logic reuse, more flexible code organization; easily compose reusable logic.
  • User-friendly API: Intuitive, designed with developer experience in mind.

Installation #

Add setup to your pubspec.yaml:

dependencies:
  setup: latest

Then run:

flutter pub get

Sponsorship #

If you find Setup helpful, please consider sponsoring the project. Your support helps maintain and improve the framework.

sponsors

Quick Start #

Here's a simple example of how to use Setup:

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),
          ),
        ),
      );
    };
  }
}

Documentation #

Warning

WIP

For more detailed information and advanced usage, please refer to our official documentation.

License #

Setup is released under the MIT License.

1
likes
150
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

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

flutter, meta, oref

More

Packages that depend on setup