responsive_screen_builder 0.0.2 copy "responsive_screen_builder: ^0.0.2" to clipboard
responsive_screen_builder: ^0.0.2 copied to clipboard

A Responsive Screen Builder Widget.

responsive_screen_builder #

Responsive Screen Builder provides you with the base builder widget with all the information that are required to build responsive screens.

Installing #

Add the following to your pubspec.yaml file:

dependencies:
  responsive_screen_builder:

Features #

  • Provides you with screen orientation
  • Give information about possible screen type (Mobile, Tablet and Desktop)
  • Provides with the total size of the current screen the app is being displayed on
  • Gives the bounds that the current widget is being drawn in

Usage #

import 'package:responsive_screen_builder/responsive_screen_builder.dart';
ResponsiveScreenBuilder(builder: (context, screenInformation) {
      // screenInformation.deviceType;
      // screenInformation.screenSize;
      // screenInformation.localWidgetSize;
      // screenInformation.orientation;
      return Scaffold(
        body: Padding(
          padding: const EdgeInsets.all(20.0),
          child: Center(
            child: Text(screenInformation.toString()),
          ),
        ),
      );
    })

Screenshot #

Basic Usage
0
likes
140
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

A Responsive Screen Builder Widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on responsive_screen_builder