Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 560 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 560 Bytes

Provides adaptive layout sizes for creating responsive design

Getting started

Add package dependency in your project:

dependencies:
  adaptive_layout:
    git:
      url: https://github.com/pintusingh28/flutter-packages
      path: adaptive_layout

Usage

Wrap your app with AdaptiveLayout widget.

runApp(
  AdaptiveLayout.fromView(
    child: MyApp(),
  ),
);
// retrieve layout data
final layoutData = AdaptiveLayout.of(context);

// retrieve layout type
final layoutType = AdaptiveLayout.layoutTypeOf(context);