padding_extra

Last updated:

0 purchases

padding_extra Image
padding_extra Images
Add to Cart

Description:

padding extra

padding_extra #
This package provides extra padding related widgets.
Features #

Padding Widgets (with shortcut named too)
Safe Area Padding Widgets (with shortcut named too)
Alignment Widgets
Size Widgets
Positioned Widgets

Getting started #
$ flutter pub add padding_extra
copied to clipboard
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
padding_extra: {*version}
copied to clipboard
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:padding_extra/padding_extra.dart';
copied to clipboard
Usage #
Padding Widgets #

PaddingAll, Pall
PaddingHorizontal, Px
PaddingVertical, Py
PaddingSymmetric, Psymm
PaddingTop, Pt
PaddingLeft, Pl
PaddingRight, Pr
PaddingBottom, Pb

SafeArea Widgets #
Internally, These widgets use SafeArea widget and remove specified padding with MediaQuery.removePadding.
Also, you can pass extra parameter to add extra padding at that direction.

SafeAreaHorizontal, SafeAreaX
SafeAreaVertical, SafeAreaY
SafeAreaTop
SafeAreaLeft
SafeAreaRight
SafeAreaBottom

Size Widgets #

Full
FullWidth, FullW
FullHeight, FullH

Alignment Widgets #

Top
Left
Right
Bottom
TopLeft
TopRight
BottomLeft
BottomRight

Positioned Widgets #

PosTop
PosRight
PosBottom
PosLeft
PosTopLeft
PosTopRight
PosBottomLeft
PosBottomRight
PosCenter

Code #
PaddingAll(
24,
child: _buildRect(context),
),
SafeAreaHorizontal(
child: Container(
color: Colors.yellow,
width: double.infinity,
height: 100,
),
),
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.