sizer 3.0.0 sizer: ^3.0.0 copied to clipboard
A flutter package for Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.
example/lib/main.dart
import 'package:example/screens/home_screen.dart';
import 'package:flutter/material.dart';
import 'package:sizer/sizer.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Sizer(
builder: (context, orientation, deviceType) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Sizer',
theme: ThemeData.light(),
home: HomeScreen() ,
);
},
);
}
}