auto_responsive_ui 0.0.3 copy "auto_responsive_ui: ^0.0.3" to clipboard
auto_responsive_ui: ^0.0.3 copied to clipboard

Smart responsive scaling engine for Flutter with adaptive layout support.

๐Ÿš€ auto_responsive_ui #

A smart, adaptive responsive engine for Flutter โ€” not just scaling, but intelligent UI adjustment based on device type and screen size.


โœจ Why auto_responsive_ui? #

Every Flutter developer faces this problem:

โŒ UI looks perfect on one device โŒ Breaks on small phones โŒ Looks oversized on tablets โŒ Too much manual MediaQuery logic

Existing solutions only scale blindly.

๐Ÿ‘‰ auto_responsive_ui solves this with intelligent scaling + device awareness.


๐Ÿ”ฅ Key Features #

  • ๐Ÿ“ฑ Device Type Detection

    • Small Phone
    • Phone
    • Large Phone
    • Tablet
  • โš–๏ธ Smart Scaling (Not Linear)

    • Prevents UI from becoming too small or too large
    • Uses min/max clamp for stability
  • ๐ŸŽฏ Figma-Based Design Support

    • Build UI exactly based on your design dimensions
  • โœจ Clean Extensions API

    • No boilerplate
    • Super easy to use
  • ๐Ÿงฑ Safe Initialization

    • No need to manually handle screen calculations

๐Ÿ“ฆ Installation #

Add this to your pubspec.yaml:

dependencies:
  auto_responsive_ui: ^0.0.1

๐Ÿš€ Getting Started #

1. Wrap Your App #

return ResponsiveBuilder(
  config: const ResponsiveConfig(
    designWidth: 375,
    designHeight: 812,
  ),
  child: MaterialApp(
    home: MyHomePage(),
  ),
);

2. Use Extensions Anywhere #

Padding(
  padding: EdgeInsets.all(16.w),
  child: Text(
    "Hello Flutter",
    style: TextStyle(fontSize: 18.r),
  ),
)

๐Ÿ“ Available Extensions #

Extension Description
.w Scales width
.h Scales height
.r Scales text/font

๐Ÿ“ฑ Device Type Usage #

if (ResponsiveEngine.deviceType == DeviceType.tablet) {
  return GridView(...);
} else {
  return ListView(...);
}

โš™๏ธ Configuration #

ResponsiveConfig(
  designWidth: 375,
  designHeight: 812,
  minScale: 0.85,
  maxScale: 1.25,
)

๐Ÿง  How It Works #

Unlike traditional packages:

โŒ Linear scaling โ†’ breaks UI โœ” Adaptive scaling โ†’ clamps values within safe range

It calculates:

  • Screen size
  • Device category
  • Safe scaling ratio

Then applies optimized scaling across your UI.


๐Ÿ”ฅ Why Not Other Packages? #

Feature auto_responsive_ui Typical Packages
Smart scaling โœ… โŒ
Device awareness โœ… โŒ
Clamp protection โœ… โŒ
Clean API โœ… โš ๏ธ
Figma alignment โœ… โš ๏ธ

๐Ÿงช Example Use Cases #

  • E-commerce apps
  • Logistics apps
  • Admin dashboards
  • Startup MVPs
  • Pixel-perfect UI builds

๐Ÿ› ๏ธ Roadmap #

  • โŒ Orientation-aware scaling
  • โŒ Auto layout switching (Grid/List)
  • โŒ Debug overlay
  • โŒ Figma plugin integration

๐Ÿค Contributing #

Contributions are welcome! Feel free to open issues or submit PRs.


๐Ÿ“„ License #

MIT License


๐Ÿ’ก Author #

Built with โค๏ธ for Flutter developers who are tired of broken UI across devices.

1
likes
0
points
214
downloads

Publisher

unverified uploader

Weekly Downloads

Smart responsive scaling engine for Flutter with adaptive layout support.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on auto_responsive_ui