Search packages, repositories and app categories

Package detailsv2.0.0

relative_scale

RelativeScale is a simple custom sizing system for flutter widgets to achieve the same physical sizes across different devices.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
2.6K
Likes
67
Pub points
140

Install package

flutter pub add relative_scale

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

RelativeScale is a Flutter package that provides a custom sizing system to ensure consistent physical dimensions across devices. By scaling widget sizes relative to screen density and size, it helps maintain visual consistency regardless of device type or resolution. Designed for responsive UI development, it simplifies creating layouts that appear uniform on Android, iOS, Web, macOS, Windows, and Linux. The package uses a base scale factor derived from the device's screen characteristics, enabling developers to define sizes in a way that translates to real-world measurements. It’s ideal for apps where precise visual alignment and proportional design are critical.

Use cases

  • Cross-device UI consistency
  • Responsive layout design
  • Physical pixel-based sizing
  • Design system implementation
  • Multi-platform app development

Key features

  • Density-aware scaling
  • Base unit based on screen size
  • Consistent physical dimensions
  • Multi-platform support
  • Simple API integration

Suitable for

  • Developers prioritizing visual consistency
  • Teams using design systems
  • Apps targeting multiple platforms
  • Projects requiring precise layout control

Considerations

  • Requires understanding of screen density concepts
  • May need adjustment for extreme screen sizes
  • Not suitable for fixed pixel-perfect designs
  • Best used with flexible layout widgets
  • Depends on accurate device metrics

Categories

Projects using this package