Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.35 KB

README.md

File metadata and controls

46 lines (35 loc) · 1.35 KB

Getting started

Make your apps responsive by using this package.

Usage

MediaQuery is great for making our apps responsive but still it was really hectic to use MediaQuery and write it again and again. So I came up with an idea to make a separate class for mediaquery and extract its powers.

import 'package:flutter/material.dart';
import 'package:responsive_mediaquery.dart';
void main() {
  runApp(  const MyApp());
}

class MyApp extends StatelessWidget {
  const  MyApp({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
 Responsive().init(context);
    return  MaterialApp(
home:Scaffold(
body:Container(
width:Responsive.horizontalLength*100,
height:Responsive.verticalLength*100,
color:Colors.red,
)));
}
}