Skip to content

SoftEngMuhammadAli/flutter_common_utilities

Repository files navigation

Flutter Common Utilities

A powerful Flutter utility package for building responsive and adaptive UI layouts effortlessly.

🚀 Features

  • Responsive Utilities – Easily adapt UI to various screen sizes and orientations.
  • Customizable Breakpoints – Define screen size breakpoints for mobile, tablet, and desktop views.
  • Animated Transitions – Smooth layout transitions with built-in animations.
  • FlutterCommonStepper – A stepper widget to guide users through step-based workflows.
  • ResponsiveGridView – A flexible grid layout that adjusts column count dynamically based on screen size.

📦 Installation

Add flutter_common_utilities to your pubspec.yaml:

dependencies:
  flutter_common_utilities: ^latest_version

Then, run:

flutter pub get

🛠 Usage

🏗 ResponsiveUtil

ResponsiveUtil helps you create adaptive layouts that adjust based on the screen size.

ResponsiveUtil(
  mobile: MobileView(),
  tablet: TabletView(),
  desktop: DesktopView(),
)

🔄 FlutterCommonStepper

Use FlutterCommonStepper for intuitive step-by-step navigation.

FlutterCommonStepper(
  currentStep: 2,
  totalSteps: 5,
  onStepChange: (step) => print("Step: \$step"),
)

📐 ResponsiveGridView

Create a dynamic grid that adapts to different screen sizes.

ResponsiveGridView(
  itemCount: 10,
  builder: (context, index) => GridItem(index),
)

🎯 Example

Explore the example project to see these widgets in action:

cd example
flutter run

📚 Additional Resources


📢 Stay up to date – Star the repo and follow updates for the latest improvements! 🚀

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published