Skip to content

odroe/odroe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Odroe

Pub Version GitHub License Website GitHub Sponsors Open Collective sponsors Discord X (formerly Twitter) Follow

Odroe is a declarative Flutter UI framework used to create user interfaces. It is built on top of Flutter and updated with fine-grained reactions. Declare your state and use it throughout the entire application, and only code that depends on it will rerun when the state changes.

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

Widget counter() => setup(() {
    final count = signal(0);

    void increment() => count.value++;

    return () => TextButton(
        onPressed: increment,
        child: Text('Count: ${count.value}'),
    );
});

Features

  • Compatibility, Setup Widget is fully compatible with Flutter Class WIdget and can be used with each other.
  • Refined, the amount of code is significantly reduced compared to Class Widget.
  • Reactive, your state has reactive primitives, which are based on the Signal design.
  • Simple, Setup Widget is a typical functional widget, learn some powerful concepts of composition, reusability and construction.

Why Odroe

Odroe adopts functional Widget design (we call it Setup Widget), which draws on years of experience in building web front-end frameworks to make it easier for you to write Widgets.