auto_screen 0.0.1 copy "auto_screen: ^0.0.1" to clipboard
auto_screen: ^0.0.1 copied to clipboard

A Flutter package for responsive UI and screen size adaptation.

screen_util #

A Flutter package for responsive UI and screen size adaptation.
Easily scale your widgets, fonts, and layout based on screen size.

Features #

  • Initialize with design width and height
  • Scale width, height, and font sizes
  • Works with any Flutter project

Usage #

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Builder(
        builder: (context) {
          ScreenUtil.init(context, designWidth: 375, designHeight: 812);

          return Scaffold(
            body: Center(
              child: Container(
                width: ScreenUtil.w(100),
                height: ScreenUtil.h(50),
                color: Colors.blue,
              ),
            ),
          );
        },
      ),
    );
  }
}
2
likes
0
points
157
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for responsive UI and screen size adaptation.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on auto_screen