ruki_utils 0.1.2
ruki_utils: ^0.1.2 copied to clipboard
A Flutter utility library providing various helpful functions.
Changelog #
All notable changes to ruki_utils will be documented in this file.
0.1.1 - 2025-11-05 #
Nothing changed, just housekeeping.
0.1.0 - 2025-11-05 #
Added #
ScreenUtilssingleton with responsive scaling for sizes, fonts, icons, paddings, offsets, and alignments.- Web-safe platform checks using
kIsWeb+defaultTargetPlatform(nodart:io). ScreenUtils.configure(...)to set baseline, multipliers, and optional live metric listening.- Percentage helpers:
num.vw(width %) andnum.vh(height %). - Safe-area helpers:
viewPaddingOf(context),viewInsetsOf(context). - Tablet detection heuristic and alignment bias control (
alignmentTabletBias). - Extensions for
num,EdgeInsets,Alignment, andOffset. - Example app under
example/showcasing usage. - Test suite (
test/screen_utils_test.dart) covering scaling math, tablet detection, percent helpers, alignment bias, EdgeInsets/Offset scaling, and safe-area helpers. - Documentation: comprehensive
README.md. - License:
MIT.
Changed #
- Smoother scaling (removed
ceilToDouble()to avoid animation/layout jitter).
Fixed #
- Safer fallbacks when no view is available; recomputation hooks for metric changes.