Skip to main content

ruki_utils 0.1.2 copy "ruki_utils: ^0.1.2" to clipboard
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 #

  • ScreenUtils singleton with responsive scaling for sizes, fonts, icons, paddings, offsets, and alignments.
  • Web-safe platform checks using kIsWeb + defaultTargetPlatform (no dart:io).
  • ScreenUtils.configure(...) to set baseline, multipliers, and optional live metric listening.
  • Percentage helpers: num.vw (width %) and num.vh (height %).
  • Safe-area helpers: viewPaddingOf(context), viewInsetsOf(context).
  • Tablet detection heuristic and alignment bias control (alignmentTabletBias).
  • Extensions for num, EdgeInsets, Alignment, and Offset.
  • 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.
0
likes
155
points
11
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter utility library providing various helpful functions.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on ruki_utils