responsive_standard_tool 0.1.1 copy "responsive_standard_tool: ^0.1.1" to clipboard
responsive_standard_tool: ^0.1.1 copied to clipboard

A scalable and context-aware responsive design system for Flutter apps. Supports multiple device breakpoints, auto-scaling, and layout abstraction for production-ready UIs.

๐Ÿ“ responsive_standard_tool #

A scalable, elegant, and production-ready responsive layout system for Flutter.
Designed for teams who work with multiple design breakpoints (mobile, tablet, desktop, ultra) and want clean, maintainable, context-driven scaling.


pub package CI: main License: MIT

๐ŸŽฏ Why use this?

responsive_standard_tool bridges the gap between design tools like Figma and real production UIs in Flutter.
It uses your design canvas sizes to scale widgets, layout, and text dynamically and consistently across breakpoints.


โœจ Features #

  • ๐Ÿงฑ ResponsiveBuilder: build responsive UIs with context-aware device info and scaling.
  • ๐Ÿ” Breakpoint animation transitions (mobile, tablet, desktop, ultra).
  • ๐ŸŽฏ Scaler: scale text, dimensions, and padding from design sizes.
  • ๐Ÿ“ฑ Device detection via screen width.
  • ๐Ÿงฉ ResponsiveScope for context-wide access to scaler/device info.
  • ๐ŸŽจ LayoutOverlay for debugging layout in development.
  • ๐Ÿ’ผ Production-grade folder structure with src/ isolation.
  • ๐Ÿ› ๏ธ Configurable design sizes (e.g. Figma specs) using ResponsiveConfigProvider.

๐Ÿš€ Installation #

Add to your project:

flutter pub add responsive_standard_tool

Or in pubspec.yaml:

dependencies:
  responsive_standard_tool: ^0.1.1

๐Ÿงฉ Getting Started #

1. Wrap your app with ResponsiveConfigProvider #

import 'package:responsive_standard_tool/responsive_standard_tool.dart';

void main() {
  runApp(
    ResponsiveConfigProvider(
      designSizes: ResponsiveConfigMap(
        mobile: ResponsiveConfig(width: 375, height: 812),
        tablet: ResponsiveConfig(width: 768, height: 1024),
        desktop: ResponsiveConfig(width: 1440, height: 1024),
        ultra: ResponsiveConfig(width: 1920, height: 1080),
      ),
      child: const MyApp(),
    ),
  );
}

๐Ÿ“ฆ Usage Example #

ResponsiveBuilder(
  debugLog: true,
  builder: (context, deviceInfo, scaler) {
    return Scaffold(
      body: Center(
        child: Text(
          'Device: ${deviceInfo.type}',
          style: TextStyle(fontSize: scaler.scaleText(18)),
        ),
      ),
    );
  },
);

Or access via context extensions:

context.scaler      // Access to Scaler
context.deviceInfo  // Access to current device type and orientation
context.spacing     // Predefined responsive spacing

๐Ÿง  Design Size vs Scaling #

Design sizes represent the canvas dimensions used by your designer in tools like Figma, Adobe XD, or Sketch.
This package uses those as a baseline to scale layout responsively on all screen sizes.


๐Ÿ“‚ Folder Structure #

lib/
โ”œโ”€โ”€ responsive_standard_tool.dart   // Public API
โ””โ”€โ”€ src/
    โ”œโ”€โ”€ builder/
    โ”œโ”€โ”€ core/
    โ”œโ”€โ”€ config/
    โ”œโ”€โ”€ utils/
    โ”œโ”€โ”€ extensions/

๐Ÿงช Testing #

You can write widget tests using MediaQuery and inject fake screen sizes for each breakpoint.


โค๏ธ Contributing #

Pull requests are welcome. Please follow the coding style used in the project and include tests for any changes.

0
likes
0
points
20
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

A scalable and context-aware responsive design system for Flutter apps. Supports multiple device breakpoints, auto-scaling, and layout abstraction for production-ready UIs.

Repository (GitLab)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on responsive_standard_tool