sizer_mod 0.0.1 sizer_mod: ^0.0.1 copied to clipboard
A flutter plugin for Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. With useful widgets.
import 'package:flutter/material.dart';
import 'package:sizer_mod/sizer_mod.dart';
import 'screens/home_screen.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return LayoutBuilder(
builder: (context, constraints) {
return OrientationBuilder(
builder: (context, orientation) {
SizerUtil().init(constraints, orientation);
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Sizer',
theme: ThemeData.light(),
home: HomeScreen(),
);
},
);
},
);
}
}