easy_responsive_flutter 0.0.2
easy_responsive_flutter: ^0.0.2 copied to clipboard
A Flutter package that helps developers create responsive layouts by adjusting dimensions and font sizes dynamically based on screen size and orientation.
Easy Responsive π±
π Overview Easy Responsive is a lightweight Flutter package designed to simplify responsive UI development. It provides an easy-to-use utility for dynamically adjusting dimensions and font sizes based on screen size and orientation, ensuring your Flutter app looks great on all devicesβfrom mobile phones to tablets.
β¨ Features β Auto-adjust UI elements based on screen size. β Supports both portrait and landscape modes. β Customizable breakpoints for phone and tablet layouts. β Lightweight & optimized for performance. β Works seamlessly with existing Flutter widgets.
π Installation Add Easy Responsive to your pubspec.yaml:
dependencies: easy_responsive: ^0.0.2
Then, run: flutter pub get
π Usage 1οΈβ£ Responsive Dimensions Use responsiveDimension() to get dynamic sizes based on device type. import 'package:easy_responsive_flutter/easy_responsive_flutter.dart';
double responsiveWidth(BuildContext context) { return ResponsiveUtil.responsiveDimension( phoneValue: 100, tabletValue: 200, context: context, ); }
2οΈβ£ Responsive Font Sizes Use responsiveFontSize() to adjust text size dynamically.
Text( 'Hello, Responsive!', style: TextStyle( fontSize: ResponsiveUtil.responsiveFontSize( phoneFontSize: 16, tabletFontSize: 24, phoneLandscapeFontSize: 18, tabletLandscapeFontSize: 30, context: context, ), ), )
π Contributing We welcome contributions! If youβd like to improve Easy Responsive, follow these steps:
Fork the repo Create a new branch (feature/awesome-feature) Commit changes (git commit -m "Added new feature") Push to the branch (git push origin feature/awesome-feature) Submit a Pull Request π
π Issues & Feedback If you find a bug or have suggestions, please open an issue on GitHub.
π License Easy Responsive is licensed under the MIT License. See LICENSE for details.
Madeβ€οΈ by Mohamed Essam π