relative_scale 2.0.0 copy "relative_scale: ^2.0.0" to clipboard
relative_scale: ^2.0.0 copied to clipboard

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

example/README.md

import 'package:flutter/material.dart';
import 'package:relative_scale/relative_scale.dart';

class Example extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return RelativeBuilder(
      builder: (context, height, width, sy, sx) {
        return Scaffold(
          appBar: AppBar(
            title: Text(
              'App Bar Title',
              style: TextStyle(fontSize: sy(13)),
            ),
          ),
          body: Container(
            height: height,
            width: width,
            child: Text(
              'Body Text',
              style: TextStyle(fontSize: sy(11)),
            ),
          ),
        );
      },
    );
  }
}
64
likes
150
pub points
81%
popularity

Publisher

verified publisherxamantra.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on relative_scale