**1.0.1**

This commit is contained in:
2026-02-25 13:33:17 +02:00
parent 50da40e044
commit 2699d89bcd
5 changed files with 13 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
"packages": [ "packages": [
{ {
"name": "astromic_extensions", "name": "astromic_extensions",
"version": "1.0.0", "version": "1.0.1",
"dependencies": [ "dependencies": [
"flutter" "flutter"
], ],

View File

@@ -1,3 +1,9 @@
# 1.0.0 # Version Changelog
## 1.0.0
* **INIT**: Initial commit in the new repo. * **INIT**: Initial commit in the new repo.
## 1.0.1
* **FEAT**: Added the pad wrapper.

View File

@@ -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. * **.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. * **.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. * **.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. * **.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)`). * **.ofSW() / .ofSH()** (`num`): Returns a double representing a percentage of the screen width or height (e.g., `20.ofSW(context)`).

View File

@@ -42,6 +42,9 @@ extension QuickSimpleWidgets on Widget {
/// Changes the [opacity] of the widget. /// Changes the [opacity] of the widget.
Widget opacity(num o) => Opacity(opacity: o.toDouble(), child: this); 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. /// Applies uniform padding around the widget.
Widget padAll(num p) => Padding(padding: p.padAll, child: this); Widget padAll(num p) => Padding(padding: p.padAll, child: this);

View File

@@ -1,7 +1,7 @@
name: astromic_extensions name: astromic_extensions
description: A collection of high-performance Dart extensions designed to eliminate UI boilerplate and simplify RTL (Right-to-Left) layout logic. description: A collection of high-performance Dart extensions designed to eliminate UI boilerplate and simplify RTL (Right-to-Left) layout logic.
publish_to: "none" publish_to: "none"
version: 1.0.0 version: 1.0.1
environment: environment:
sdk: ">=3.0.0" sdk: ">=3.0.0"