responsive_size_utils 0.1.6 icon indicating copy to clipboard operation
responsive_size_utils: ^0.1.6 copied to clipboard

A package for having beautiful and reasonable UI without doing lots of work

example/main.dart

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

main(List<String> args) {
  runApp(
    App(),
  );
}

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return ResponsiveWidget(
      designedSize: Size(
        375,
        812,
      ),
      builder: () {
        return MaterialApp(
          home: Scaffold(
            body: Container(
              child: Column(
                children: [
                  Container(
                    width: ResponsiveSizeUtils.fullWidth(),
                    height: 23.rHeight(),
                    color: Colors.red,
                  ),
                  Container(
                    width: ResponsiveSizeUtils.fullHeight(),
                    height: 23.0.rHeight(),
                    color: Colors.red,
                  ),
                ],
              ),
            ),
          ),
        );
      },
    );
  }
}
4
likes
120
pub points
37%
popularity

Publisher

unverified uploader

A package for having beautiful and reasonable UI without doing lots of work

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on responsive_size_utils