declar_ui 1.0.2
declar_ui: ^1.0.2 copied to clipboard
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.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
Scaffoldwidget 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
Whenwidget for declarative conditional rendering, inspired by SwiftUI’sifview 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
Declarwidget — a stateful declarative wrapper that enables inline lifecycle hooks. -
Supports
init,dispose, anddidUpdatecallbacks 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, andStack
- 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 👇