declar_ui 1.0.2 copy "declar_ui: ^1.0.2" to clipboard
declar_ui: ^1.0.2 copied to clipboard

retracted

Declar UI is a declarative and composable Flutter UI framework by UpDown Interactive. It offers a fluent, SwiftUI-inspired syntax for building clean, modern Flutter interfaces using expressive, chai [...]

1.0.2 #

Update — Container #

This update introduces fixes to the container decorators.

1.0.1 #

Update — Scaffold, When, and Declar Widgets #

This update introduces three major additions to enhance the declarative capabilities of Declar UI and improve composition flexibility.

🆕 New Additions #

🧩 Scaffold

  • Added a fully chainable Scaffold widget for composing Flutter page layouts declaratively.

  • Supports fluent methods for:

    • .appBar()
    • .body()
    • .floatingActionButton()
    • .drawer()
    • .bottomNavigationBar()
  • Example:

    Scaffold()
      .appBar(AppBar(title: Text('Declar UI')))
      .body(Text('Hello Declar!').center())
      .floatingActionButton(FloatingActionButton(
        onPressed: () {},
        child: Icon(Icons.add),
      ));
    

⚙️ When

  • Introduced the When widget for declarative conditional rendering, inspired by SwiftUI’s if view builder.

  • Features a fluent syntax for defining conditional branches:

    When(condition: isLoggedIn)
      .then(Text('Welcome back!'))
      .otherwise(Text('Please log in'));
    
  • Works seamlessly with other Declar UI widgets and extensions.

🔄 Declar

  • Added the core Declar widget — a stateful declarative wrapper that enables inline lifecycle hooks.

  • Supports init, dispose, and didUpdate callbacks directly in the widget constructor.

  • Example:

    Declar(
      init: () => print('Initialized'),
      dispose: () => print('Disposed'),
      builder: (context) => Text('Declar is active!'),
    );
    
  • Ideal for embedding lightweight, lifecycle-aware logic blocks inside the UI.


🔧 Improvements #

  • Internal widget structure updated for improved readability and reusability.
  • Enhanced inline documentation for new widgets.
  • Minor performance optimizations and style consistency improvements across core components.

🧠 Summary #

Declar UI v1.0.1 expands the framework’s declarative power with conditional rendering, lifecycle management, and complete page composition through Scaffold. These additions bring Flutter development one step closer to true declarative UI design — fluent, composable, and expressive.

1.0.0 #

Initial Stable Release — Declar UI #

The first public release of Declar UI, a declarative and composable Flutter UI framework developed by UpDown Interactive.

Highlights #

  • Introduced declarative Flutter widget wrappers:
    • Text, Container, Row, Column, SizedBox, Icon, Image, MaterialApp, and Stack
  • Added extension modifiers for all widgets:
    • .padding(), .backgroundColor(), .radius(), .border(), .center(), .align(), .size(), .opacity(), .visible(), .onTap(), .rotate(), and more
  • Implemented SwiftUI-like fluent syntax for expressive, chainable widget configuration
  • Added comprehensive unit and widget test coverage
  • Included developer-friendly documentation comments and structured code organization
  • Fully compatible with Flutter 3.16+

Summary #

This release establishes the foundation of Declar UI — bringing clean, functional, and declarative design principles to Flutter development.

Here’s your updated changelog entry for version 1.0.1 — following the same tone, structure, and formatting as your 1.0.0 release entry 👇

3
likes
0
points
209
downloads

Publisher

verified publisherupdown-interactive.in

Weekly Downloads

Declar UI is a declarative and composable Flutter UI framework by UpDown Interactive. It offers a fluent, SwiftUI-inspired syntax for building clean, modern Flutter interfaces using expressive, chainable modifiers. Declar UI reimagines core widgets into lightweight, immutable components that enhance readability, reduce boilerplate, and scale elegantly.

Repository (GitHub)
View/report issues

Topics

#declarative #ui #framework #flutter #design-system

Documentation

Documentation

License

unknown (license)

Dependencies

declar, flutter

More

Packages that depend on declar_ui