# π± 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_flutter: ^0.0.4
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 EasyResponsiveFlutter.responsiveDimension(
phoneValue: 100,
tabletValue: 200,
context: context,
);
}
2οΈβ£ Responsive Font Sizes
Use responsiveFontSize() to adjust text size dynamically.
Text(
'Hello, Responsive!',
style: TextStyle(
fontSize: EasyResponsiveFlutter.responsiveFontSize(
phoneFontSize: 16,
tabletFontSize: 31,
phoneLandscapeFontSize: 8,
tabletLandscapeFontSize: 18,
context: context,
),
),
)
π Contributing
We welcome contributions! If youβd like to improve Easy Responsive, follow these steps:
- Fork the repository.
- 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 the LICENSE file for details.
β€οΈ Made with love by Mohamed Essam π