wonzy_core_utils 0.2.0
wonzy_core_utils: ^0.2.0 copied to clipboard
A collection of Flutter/Dart extensions and reusable widgets for rapid UI development. Context helpers, navigation shortcuts, text builders, layout extensions, and customizable widgets.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.2.0 - 2025-02-20 #
Added #
- CustomTextField — Production-ready, type-driven smart text field built on
FormBuilderTextField.CustomFieldTypeenum (text,email,phone,password,number,studentNumber) with automatic keyboard, autofill, obscure, and validation defaults.- Password show/hide toggle icon.
- Clear (×) button support (with controller).
nextFocusNodefor automatic focus transition on submit.valueTransformerfor pre-save value transformation (trim, lowercase, etc.).- Turkish error messages by default; all overridable.
- Full
InputDecorationcustomization support. - Custom validator composition via
FormBuilderValidators.compose.
Changed #
- Moved
flutter_form_builderandform_builder_validatorsfromdev_dependenciestodependencies(required byCustomTextField).
0.1.0 - 2025-02-18 #
Added #
- Context Extensions —
BuildContextshortcuts for screen size, theme, color scheme, and text theme. - Layout Extensions —
Column/Rowcross-axis & main-axis alignment helpers;List<Widget>.column()/.row()builders with spacing support. - Navigation Extensions —
pushPage,pop,pushReplacementPage,pushAndRemoveUntilPage, named route shortcuts onBuildContext. - Route Transitions —
RouteTransitionsclass with fade, slide, scale, rotation, size, and combined transition builders. - Primitive Extensions
num—.h,.w(SizedBox spacing),.all,.horizontal,.vertical(EdgeInsets),.radius(BorderRadius),.ms,.seconds(Duration).String—capitalize,toTitleCase,toSnakeCase,toCamelCase, validators (isNumeric,isAlphabetic, etc.),toTurkishPhoneFormat,toUsername,toGmail, and more.TextBuilder— Chainable text widget builder:"Hello".text.bold.headline4(context).color(Colors.red).
- Utility Extensions —
Stringlogging helpers:debugLog(),infoLog(),warningLog(),errorLog(). - Widget Extensions
- Padding & Margin —
.paddingAll(),.paddingHorizontal(),.marginAll(), etc. - Alignment —
.center,.alignLeft,.alignRight,.alignTop,.alignBottom. - Container —
.container()all-in-one wrapper. - Expanded / Flexible —
.expanded(),.flexible(). - Size —
.sized(),.square(),.expandedWidth,.constrained(). - Image —
.rounded(),.circular(),.bordered(),.circleAvatar(),.shadow(), and more. - Decoration —
.roundedBox(),.withBackground(),.onTap(),.withVisibility(),.withOpacity(),.withTooltip(),.withHero().
- Padding & Margin —
- Reusable Widgets
CostumAppBar— Fully customizable AppBar with gradient, shape, bottom separator support.CostumBottomSheet— Feature-rich bottom sheet with draggable, scrollable, action buttons support.CostumButton— General purpose button with loading state, gradient, icon support.CostumIconButton— Circular icon button with badge, gradient, loading state support.