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

outdated

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
0
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

License

unknown (license)

Dependencies

flutter

More

Packages that depend on relative_scale