flexi_scale library

Flexi Scale A fully responsive scaling library for Flutter that automatically adjusts width, height, font size, radius, and spacing based on screen dimensions and safe areas.

Supports:

  • Phones
  • Tablets
  • Desktops
  • Watches

Example usage:

20.rsWidth; // Scales 20 logical pixels according to device width
14.rsFont;  // Responsive font size
EdgeInsets.all(16.rsWidth);

Classes

AdaptiveText
Text widget that automatically scales font size responsively.
FlexiScaleApp
Root app widget for automatic responsive scaling.
ResponsiveSize
Core responsive utility class used internally by the package.

Enums

DeviceType
Represents the current device type based on screen size.
ScaleMode
Determines how scaling values are calculated.

Extensions

FlexiExtensions on num
Extensions to quickly access responsive units (rsWidth, rsHeight, etc.)