From 2699d89bcd48392392fe503cb936a4367c84470b Mon Sep 17 00:00:00 2001 From: "Michael W. Aziz" Date: Wed, 25 Feb 2026 13:33:17 +0200 Subject: [PATCH] **1.0.1** --- .dart_tool/package_graph.json | 2 +- CHANGELOG.md | 8 +++++++- README.md | 1 + lib/src/widget_wrappers.dart | 3 +++ pubspec.yaml | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.dart_tool/package_graph.json b/.dart_tool/package_graph.json index e48386f..f926e51 100644 --- a/.dart_tool/package_graph.json +++ b/.dart_tool/package_graph.json @@ -5,7 +5,7 @@ "packages": [ { "name": "astromic_extensions", - "version": "1.0.0", + "version": "1.0.1", "dependencies": [ "flutter" ], diff --git a/CHANGELOG.md b/CHANGELOG.md index 52c93ae..81c0740 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ -# 1.0.0 +# Version Changelog + +## 1.0.0 * **INIT**: Initial commit in the new repo. + +## 1.0.1 + +* **FEAT**: Added the pad wrapper. diff --git a/README.md b/README.md index 471dbc5..188eb20 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ A collection of high-performance Dart extensions designed to eliminate UI boiler * **.resolveToDirectional()** (`BorderRadiusGeometry`): Reverses corner radii (e.g., top-left to top-right) for RTL support. * **.copyWith()** (`EdgeInsetsGeometry` / `BorderRadiusGeometry`): An additive method to combine geometries without overwriting existing values. * **.padAll / .symH / .symV / .padTop / .padBot** (`num`): Quick-access `EdgeInsets` generators directly from numbers. +* **.pad** (`num`): General EdgeInsets wrapper. * **.padStart / .padEnd** (`num`): RTL-aware `EdgeInsetsDirectional` generators. * **.ofSW() / .ofSH()** (`num`): Returns a double representing a percentage of the screen width or height (e.g., `20.ofSW(context)`). diff --git a/lib/src/widget_wrappers.dart b/lib/src/widget_wrappers.dart index 27d015d..4e693db 100644 --- a/lib/src/widget_wrappers.dart +++ b/lib/src/widget_wrappers.dart @@ -42,6 +42,9 @@ extension QuickSimpleWidgets on Widget { /// Changes the [opacity] of the widget. Widget opacity(num o) => Opacity(opacity: o.toDouble(), child: this); + /// Applies uniform padding around the widget. + Widget pad(EdgeInsetsGeometry p) => Padding(padding: p, child: this); + /// Applies uniform padding around the widget. Widget padAll(num p) => Padding(padding: p.padAll, child: this); diff --git a/pubspec.yaml b/pubspec.yaml index bba73a2..4fb6618 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: astromic_extensions description: A collection of high-performance Dart extensions designed to eliminate UI boilerplate and simplify RTL (Right-to-Left) layout logic. publish_to: "none" -version: 1.0.0 +version: 1.0.1 environment: sdk: ">=3.0.0"