Skip to content

Latest commit

 

History

History

adaptive_layout

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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);