screenresize 0.0.7 copy "screenresize: ^0.0.7" to clipboard
screenresize: ^0.0.7 copied to clipboard

You can resize your screen by this package. It will help you to make the app's size based on design page size.

example/lib/main.dart

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



class Homepage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _HomePageState();
  
}

class _HomePageState extends State<Homepage> {
  
  @override
  void initState() {
    super.initState ();
    Screens.i(width: 375, height: 812);
  }
  
  
  @override
  Widget build(BuildContext context) {
    
    final heights=MediaQuery.of(context).size.height;
    final widths=MediaQuery.of(context).size.width;
    return MaterialApp(
      home:Scaffold(
        backgroundColor: Color(0xffffffff),
        body: Container(
          child: Text("Hello Salim Murshed", style: TextStyle(fontSize: Screens().Size(32)),),
          ),
        ),
      
      );
  }
}
2
likes
30
pub points
0%
popularity

Publisher

unverified uploader

You can resize your screen by this package. It will help you to make the app's size based on design page size.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on screenresize