๐Ÿ“ฆ 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:

  • ZebaResponsiveBuilder
  • ZebaScreenHelper
  • ZebaOrientationBuilder
  • ZebaResponsivePadding

๐Ÿ“ฆ 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! โค๏ธ