zeba_academy_responsive_builder 0.0.1
zeba_academy_responsive_builder: ^0.0.1 copied to clipboard
A responsive builder package by Zeba Academy for Flutter (Mobile, Tablet, Desktop support).
๐ฆ zeba_academy_responsive_builder #
A powerful and lightweight Flutter responsive utility package by Zeba Academy to easily build apps for Mobile, Tablet, and Desktop with clean and scalable architecture.
๐ Features #
โ Mobile / Tablet / Desktop layout switching โ Custom breakpoint system โ Screen size helpers โ Orientation handling (Portrait / Landscape) โ Custom responsive widgets (padding, layout helpers) โ Simple and clean API โ Zero dependencies (pure Flutter)
๐ธ Overview #
Build fully responsive apps with minimal code using:
ZebaResponsiveBuilderZebaScreenHelperZebaOrientationBuilderZebaResponsivePadding
๐ฆ Installation #
Add this to your pubspec.yaml:
dependencies:
zeba_academy_responsive_builder: ^0.0.1
Then run:
flutter pub get
๐ Usage #
1๏ธโฃ Responsive Layout Switching #
ZebaResponsiveBuilder(
mobile: const Text("Mobile View"),
tablet: const Text("Tablet View"),
desktop: const Text("Desktop View"),
)
2๏ธโฃ Screen Size Helper #
if (ZebaScreenHelper.isMobile(context)) {
// Mobile UI
}
3๏ธโฃ Orientation Handling #
ZebaOrientationBuilder(
builder: (context, orientation) {
return orientation == Orientation.portrait
? const Text("Portrait")
: const Text("Landscape");
},
);
4๏ธโฃ Responsive Padding #
ZebaResponsivePadding(
child: Container(
height: 100,
color: Colors.blue,
),
);
โ๏ธ Breakpoints #
| Device | Width Range |
|---|---|
| Mobile | < 600 px |
| Tablet | 600 - 1439 px |
| Desktop | โฅ 1440 px |
๐งช Testing #
Run tests using:
flutter test
๐ Project Structure #
lib/
โโโ src/
โ โโโ responsive_builder.dart
โ โโโ breakpoints.dart
โ โโโ screen_helper.dart
โ โโโ orientation_builder.dart
โ โโโ responsive_widgets.dart
โโโ zeba_academy_responsive_builder.dart
๐ License #
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
You are free to:
- Use
- Modify
- Distribute
But must open-source your changes under the same license.
๐จโ๐ป About Me #
โจ Iโm Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects. You can learn more about me and my work at sufyanism.com or connect with me on LinkedIn
๐ Your all-in-one learning hub! #
๐ Explore courses and resources in coding, tech, and development at zeba.academy and code.zeba.academy. Empower yourself with practical skills through curated tutorials, real-world projects, and hands-on experience. Level up your tech game today! ๐ปโจ
Zeba Academy is a learning platform dedicated to coding, technology, and development.
โก Visit our main site: https://zeba.academy โก Explore courses: https://code.zeba.academy โก YouTube: https://www.youtube.com/@zeba.academy โก Instagram: https://www.instagram.com/zeba.academy/
โญ Support #
If you like this package:
โญ Star the repo ๐ข Share with others ๐ Report issues
๐ Future Improvements #
- Responsive Grid System
- Adaptive Typography Scaling
- Visibility Controls (show/hide widgets per device)
- Custom breakpoint overrides
Thank you for visiting! โค๏ธ