padding_extra 1.0.1 copy "padding_extra: ^1.0.1" to clipboard
padding_extra: ^1.0.1 copied to clipboard

This package provides extra padding widgets

padding_extra #

This package provides extra padding related widgets.

Getting started #

$ flutter pub add local_file_preferences

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
local_file_preferences: ^1.0.0

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:local_file_preferences/local_file_preferences.dart';

Usage #

Padding Widgets #

  • PaddingAll
  • PaddingHorizontal
  • PaddingVertical
  • PaddingSymmetric
  • PaddingTop
  • PaddingLeft
  • PaddingRight
  • PaddingBottom

SafeArea Widgets #

Internally, These widgets use SafeArea widget and remove specified padding with MediaQuery.removePadding.

  • SafeAreaHorizontal
  • SafeAreaVertical
  • SafeAreaTop
  • SafeAreaLeft
  • SafeAreaRight
  • SafeAreaBottom
PaddingAll(
  24,
  child: _buildRect(context),
),
SafeAreaHorizontal(
  child: Container(
    color: Colors.yellow,
    width: double.infinity,
    height: 100,
  ),
),
2
likes
0
points
52
downloads

Publisher

unverified uploader

Weekly Downloads

This package provides extra padding widgets

Repository (GitHub)
View/report issues

Topics

#layout #padding #safe-area

License

unknown (license)

Dependencies

flutter

More

Packages that depend on padding_extra