flutter_addons 3.0.0
flutter_addons: ^3.0.0 copied to clipboard
A productivity-boosting micro-extension framework for Flutter. Build responsive, theme-aware apps up to 7x faster with easy, reusable add-ons.
3.0.0 #
The 3.0.0 Final Release marks a major evolution in design consistency, theming flexibility, and framework stability. This version transforms the UI experience with a complete brand-based color and typography system, smarter localization, and robust production-ready optimizations.
New: Brand-Based Theming #
- BrandColor System – Introduced a 12-color scalable palette built around your brand identity for consistent, modern UI design.
- BrandTypo – Unified typography system for readable, elegant, and scalable text styles across all components.
- Adaptive Color Harmony – Automatic light/dark tone adjustments with smooth transitions.
- Input & Surface Refinement – Updated visual hierarchy using the new palette for backgrounds, surfaces, and interactive states.
Localization & Internationalization #
-
Intelligent RTL Detection Automatic layout mirroring for Arabic, Hebrew, Urdu, and other right-to-left languages.
-
Localized Naming Format Improved locale naming such as “English (EN)” for cleaner presentation.
-
Country Info Fallbacks Fallback logic for missing locale data ensures consistent global coverage.
-
Centralized Locale Registry Unified management system for adding or maintaining language packs.
-
supportedLocales()Helper Simplified setup forMaterialApplocalization integration.
Theming & System Behavior #
-
Enhanced Theme Toggle
enableSystemModenow cycles between Light ↔ Dark ↔ System, fully synchronized with system preferences. -
Reactive Theme Animation Built-in reactivity via
AnimatedBuilderandAnimatedSwitcherfor smooth transitions. -
Improved
blurEffectExtension More natural depth and blur performance across devices.
Developer Experience #
- Extensible Architecture Modular design makes it easier to add new locales, themes, or color sets.
- Debug Session Clarity
During development, disable
enableDebugLogwhen testing alerts — it’s safe and stable in production. - Production Wrapper Optimization The production build now returns only the core wrapper, eliminating location and binding errors entirely.
Fixes #
- Theme and icon synchronization issues resolved.
- Extension name conflict (
animate→animated) fixed. - RTL layout and theme transition glitches patched.
- Overall performance and reactivity improvements.
3.0.0-preview #
- RTL detection (important for Arabic, Hebrew, Urdu)
- Formatted names like English (EN)
- Country info (fallback if not provided)
- Central registry for easier scalability
- Easily extensible for more languages
- supportedLocales() helper for MaterialApp
- enableSystemMode → toggle icon cycles Light ↔ Dark ↔ System or just Light ↔ Dark.
- Full system mode support for icon toggle.
Improved:
- Reactive updates with AnimatedBuilder.
- Icon and switch stay in sync.
- Smooth transitions with AnimatedSwitcher.
- Improved
blurEffectextension.
Fixed:
- Icon & switch not updating correctly.
- Theme cycling inconsistencies.
- Extension confilct for
animateresolved withanimated
3.0.0-dev #
Added #
UiListTilewidget: fully customizable list tile with.standardand.compactvariants.PixelPerfectGridOverlay: visual grid overlay for design debugging._ScopeWrapperenhancements: optional debug grid and improved debug banner.
Changed #
- Refactored widgets and extensions for improved performance, readability, and maintainability.
- Core widgets now support optional debug tools for faster UI testing.
Fixed #
- Grid overlay painting issues in debug mode.
- Proper initialization of screen and layout info in
ResponsiveScope.
2.5.0 #
Added #
UiAvatarwidget for circular avatars with optional status indicators.UiAccordionwidget for expandable/collapsible panels.UiDrawerwidget for modern navigation drawer.- Updated documentation for navigation extensions.
Changed #
- Renamed
Frameclass toDesignFramefor clarity. - Optimized code across widgets and extensions for performance and readability.
Fixed #
- Minor layout and ui issues in entrypoint and other ui components.
2.4.5 #
- Add
UIComponents. - Added
UIFlatButtoncomponents. - Added
UIOTPScreenfor otp field. - Added
UITextFiledand more ui pack. - Replace
.swith.gapfor sizebox.
2.4.3 #
- Added
LifecycleManagerfor managing app lifecycle. - Added
Keyboard visbilityController.
2.4.2 #
- Added
UiListviewui component - Added
toStackedAvatarsfor goup of circle avaters - Grouping UIComponets as
Uiprefix - Fixed Responsive Spacing units
- Fix some validation logic.
- Supports max number for phone validation
- Introduced ThemeHelper singleton to initialize ThemeData, TextTheme, ColorScheme, and MediaQuery at app root
- Added Ui class as a global design system access point for theme, text styles, and colors without passing BuildContext
- Ensures consistent and convenient styling throughout the app
- Added documentation and usage examples for clarity
2.4.1 #
- Removed conflicted component
- Updated documentation
2.4.0 #
- Reorganized project folder structure for better scalability and upcoming phase.
- Clean separation of widgets, helpers, and theme constants.
- Ensure CoreScale re-initializes properly on every screen size/orientation change.
- Add check to only initialize or update design-based scaling when ScaleMode is
designand a valid design frame is provided. - Prevents redundant design scaling in other modes, improving performance and clarity.
- Enhances ResponsiveScope to rely on ScreenUtils for consistent screen type resolution.
- Adds safer asserts and logging for better debugging when resizing windows or using dynamic layouts.
- Optimizing core features for breaking changes
- Ensure SectionItem widgets have bounded heights to avoid overflow when used with Wrap layouts.
- Rewrote Section grouping logic for robust flex calculation per breakpoint.
- Replaced unsafe maxHeight usage with calculated viewport-based heights.
- Also documented safe usage patterns for flexible sidebar layouts.
2.3.1 #
- Fix: Resolved
LateInitializationErrorduring initialization.
2.3.0 #
What’s New:
- Introduced
Stateaddons. - Introduced
Functional Programmingaddons. - Refactor Frame(w,h).
- Fixed breaking change issue.
- Fixed responsive DFlex and Wraping.
- Preaping
UIcomponnets on V3.0
2.2.1 #
What’s New:
- Introduced
ResponsivePageclass. - Fixed extension conflict issue.
- Fixed breaking change issue.
2.2.0 #
What’s New:
Added #
- Introduced a
Result<T, E>type for functional-style success and error handling. - Added
AppState<T>for representing loading, success, and failure states in UI. - Implemented
ExceptionHandlerto standardize exception-to-error conversion across layers. - Created extension methods for retrying failed futures and guarding async operations.
- New SizedBox Spacing
sysx - New Frames added on designFrame, etc.
Fixed #
- Fix font scaling on large screens by basing scale on reference width and clamping values
- Prevent fonts from shrinking below original size on desktop resolutions
Improved #
- Enhanced error handling consistency across layers.
- Refactored data flow to follow clean architecture and functional principles.
- Simplified async logic through reusable extensions and state modeling.
- Improved terminal readability with minimal formatting
2.1.2 #
What’s New:
- Introduced a redesigned, customizable AppBar for improved UI consistency.
- Enhanced the CircleButton widget with improved styling and responsiveness.
- Added a reusable AvatarCircle widget for displaying user avatars and icons.
- Included a clean and minimal PageIndicator widget for onboarding and carousel screens.
- Implemented a set of Common Validators for consistent and efficient form validation.
- Introduced a flexible CustomTextField with built-in validation and optional visibility toggle.
2.1.1 #
Hotfix #
- Resolved lag issues and fixed crashes caused by complex widget trees.
- Improved overall performance and stability.
2.1.0 #
Fixes & Improvements #
- Fixed the non-removable
debugShowCheckedModeBannerflag. - Fixed hot-rebuild issues triggered by orientation changes.
- Improved responsive logic to reduce unnecessary widget rebuilds in
ResponsiveScope. - Optimized fallback behavior for
MediaQueryand scaling mechanisms. - Updated and enhanced smart scaling logic for more accurate rendering.
- Improved overall performance and performed a full code cleanup.
- Introduced
FlatButtonagain in Flutter. - Added support for orientation lock via internal API.
- Introduced new
SoulThemeswith improved visual design. - Added
Responsivewidget and several utility extensions to simplify responsive and UI development. - Centeralized Default Colors in
PureSoulclass
2.0.0 #
Major Features #
- Introduced
ResponsiveScopeas a new root-level widget for adaptive layouts. - Added
Frame.reversedto support orientation-aware frame swapping. - Enhanced
SmartUnitUtilswith orientation-aware scaling capabilities. - Refined design frame handling using
MediaQuery.orientation. - Implemented transition animations on responsive widget rebuilds.
- Improved debug logging for orientation and screen type changes.
Refactor & Maintenance #
- Renamed
NavigationExtensiontoNavigationContextExtensions. - Refactored
ResponsiveAppto improve error handling and screen-type detection. - Performed general code cleanup and restructuring.
Bug Fixes #
- Fixed improper fallback when using invalid
designFramevalues.
2.0.0-alpha.2 #
Features #
- Added unified scaling extensions:
.w,.h,.sp, and.rsfor automatic context-aware scaling across Smart, Design, and Percent modes. - Introduced
.usp()for unified font scaling with smart awareness. - Implemented
_safe()execution wrapper to prevent runtime crashes during uninitialized scaling scenarios. - Added
.rsas a shorthand for responsive radius computation.
Supported Modes #
- Smart: Context-aware scaling based on screen ratios and device density.
- Design: Logical pixel-to-dp mapping based on fixed mockup dimensions.
- Percent: Percentage-based scaling relative to current screen size.
Refactors #
- Renamed and formatted internal extensions for naming consistency.
- Enhanced readability and simplified logic for better maintenance.
Breaking Changes #
- Replaced scattered scaling access with centralized control via
UnifiedScale().mode. - Deprecated some older
.scaleusages; migrate to.sx,.sy,.su,.w, or.h.
1.3.1 #
Fixes #
- Corrected
SizeBoxshorthand behavior to ensure scaling aligns with design reference instead of percentage.
1.3.0 #
Preparations for 2.0.0 #
- Upgraded Flutter SDK to 3.32 and Dart SDK to 3.8.
- Addressed breaking changes in Flutter/Dart APIs and updated all dependencies accordingly.
- Marked as the final pre-2.0.0 release, maintaining compatibility with older versions.
1.2.5 #
Features #
- Introduced responsive layout support to dynamically adjust UI components across screen sizes and orientations.
- Added
NavigatorManagerfor improved navigation flow and control.
Improvements #
- Enhanced layout scaling for consistency across devices.
Bug Fixes #
- Resolved minor layout rendering issues and optimized overall performance.
1.2.4 #
Fixes #
- Removed conflicting class names to prevent runtime clashes.
- Added fake data for improved testing scenarios.
1.2.3 #
Theme Engine Enhancements #
- Added centralized
ThemeManagerfor consistent theming. - Refined the theme structure for greater flexibility.
- Introduced dynamic theme registry to support seamless theme switching.
- Improved
ColorSchemeintegration for better UI consistency. - Added
ThemeToggleButtonwidget for theme interaction.
Adaptive UI #
- Enhanced
getFrame()to better select design dimensions based on screen type. - Improved breakpoint detection with
context.isXs,context.isSm, etc.
Custom Borders #
- Added reusable extension for
DottedBorderand introduced support for new border types:Triangle,Rectangle,Dotted,Dashed. - Enabled displaying text within borders.
General Improvements #
- Improved fallback text handling for failed typography initialization.
- Enhanced Flutter error reporting and asset optimization.
1.2.2 #
Error Handling #
- Introduced
AppExceptionandErrorMapperfor structured error control. - Improved error logging clarity.
- Optimized image, typography, and color handling.
1.2.1 #
Platform Support #
- Extended native web support.
- Improved pub.flutter-io.cn metadata and visual representation.
1.2.0 #
Soul Theme Engine #
- Released the first version of the
SoulThemeEngine. - Included over 10 pre-built themes for easy customization.
- Added asynchronous extensions to enhance workflow.