zeba_academy_layout 1.0.0 copy "zeba_academy_layout: ^1.0.0" to clipboard
zeba_academy_layout: ^1.0.0 copied to clipboard

A lightweight Flutter responsive layout engine built under Zeba Academy. It provides adaptive layouts, breakpoints, and responsive widgets for mobile, tablet, and desktop applications.

๐Ÿ“ฆ Zeba Academy Layout

A powerful responsive layout engine for Flutter applications built under the Zeba Academy ecosystem.

๐Ÿš€ Overview

Zeba Academy Layout helps you build fully responsive Flutter apps with ease. It provides:

Adaptive layout system Mobile / Tablet / Desktop support Clean breakpoint management Simple responsive widgets Developer-friendly extensions

Perfect for building modern, scalable, cross-device UI systems.

โœจ Features ๐Ÿ“ฑ Mobile, Tablet, Desktop detection โšก Breakpoint-based responsive system ๐Ÿง  Smart layout engine using MediaQuery ๐Ÿ”ง Easy-to-use responsive builder widget ๐Ÿงฉ Context extensions (context.isMobile, etc.) ๐Ÿ“ Scalable architecture for large apps ๐ŸŽฏ Lightweight & performance optimized ๐Ÿ“ฆ Installation

Add this to your pubspec.yaml:

dependencies: zeba_academy_layout: ^1.0.0

Then run:

flutter pub get ๐Ÿง  Getting Started

Import the package:

import 'package:zeba_academy_layout/zeba_academy_layout.dart'; ๐Ÿ“ฑ Basic Usage Detect Device Type if (ZebaLayout.isMobile(context)) { return const Text("Mobile UI"); } Use Responsive Builder ZebaResponsiveBuilder( builder: (context, device) { switch (device) { case ZebaDeviceType.mobile: return const Text("Mobile Layout");

  case ZebaDeviceType.tablet:
    return const Text("Tablet Layout");

  case ZebaDeviceType.desktop:
    return const Text("Desktop Layout");
}

}, ); Context Extensions (Recommended) if (context.isDesktop) { return const Sidebar(); } ๐Ÿ“ Breakpoints

Default breakpoints used in this package:

Device Width Range Mobile < 600px Tablet < 1024px Desktop โ‰ฅ 1024px

You can customize these in:

ZebaBreakpoints ๐Ÿงฉ Example Scaffold( body: ZebaResponsiveBuilder( builder: (context, device) { return GridView.count( crossAxisCount: device == ZebaDeviceType.mobile ? 1 : device == ZebaDeviceType.tablet ? 2 : 4, children: List.generate( 20, (index) => Card( child: Center(child: Text("Item $index")), ), ), ); }, ), ); ๐Ÿ“ Package Structure lib/ โ”œโ”€โ”€ zeba_academy_layout.dart โ”œโ”€โ”€ src/ โ”‚ โ”œโ”€โ”€ breakpoints.dart โ”‚ โ”œโ”€โ”€ device_type.dart โ”‚ โ”œโ”€โ”€ zeba_layout.dart โ”‚ โ”œโ”€โ”€ responsive_builder.dart โ”‚ โ”œโ”€โ”€ layout_extensions.dart ๐Ÿ”ฎ Future Improvements Percentage-based layout system Orientation-aware layouts Fluid typography scaling Advanced grid system Nested responsive builders Animation-aware responsiveness ๐Ÿงช Testing

Run tests using:

flutter test ๐Ÿ‘จโ€๐Ÿ’ป About Me

โœจ Iโ€™m Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects. Learn more: https://sufyanism.com LinkedIn: https://www.linkedin.com/in/sufyanism

๐ŸŒ Zeba Academy

๐Ÿš€ Your all-in-one learning hub for coding and development.

๐Ÿ”— Website: https://zeba.academy ๐Ÿ”— Courses: https://code.zeba.academy ๐ŸŽฅ YouTube: https://www.youtube.com/@zeba.academy ๐Ÿ“ธ Instagram: https://www.instagram.com/zeba.academy ๐Ÿ“œ License

This project is licensed under the GNU General Public License (GPL-3.0).

You are free to:

Use Modify Distribute

Under the condition that:

Source code must remain open Any modifications must also be open-source under GPL

See full license: https://www.gnu.org/licenses/gpl-3.0.html

โญ Support

If you like this project, consider:

โญ Starring the repository ๐Ÿง  Contributing improvements ๐Ÿš€ Sharing with the developer community

0
likes
130
points
104
downloads

Documentation

API reference

Publisher

verified publisherzeba.academy

Weekly Downloads

A lightweight Flutter responsive layout engine built under Zeba Academy. It provides adaptive layouts, breakpoints, and responsive widgets for mobile, tablet, and desktop applications.

Homepage

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on zeba_academy_layout