Paddinger: Flutter Padding widgets generator

What is Paddinger?

const double PADDING_NORMAL = 8;
NormalAllPadding
NormalLeftPadding
NormalTopPadding
NormalRightPadding
NormalBottomPadding
NormalHorizontalPadding
NormalVerticalPadding
NormalLeftTopPadding
NormalLeftBottomPadding
NormalRightTopPadding
NormalRightBottomPadding
@paddinger const double PADDING_NORMAL = 8;
Padding(
padding: const EdgeInsets.all(PADDING_NORMAL),
child: Text(
'MyText',
),
)
NormalAllPadding(
child: Text(
'MyText',
),
)

How to use Paddinger in your project?

dependencies:
paddinger_annotations: [latestVersionHere]

dev_dependencies:
paddinger: [latestVersionHere]
  • Create a file where you will add all your PADDING_ constants, the file could be named paddings.dart.
  • Add your favourite material or cupertino import like:
// ignore: unused_import
import 'package:flutter/material.dart';

--

--

--

An Android Developer who also likes to explore other worlds. Check me out at https://www.emanuelepapa.dev

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Emanuele Papa

Emanuele Papa

An Android Developer who also likes to explore other worlds. Check me out at https://www.emanuelepapa.dev

More from Medium

Flutter Golden Testing with Bloc

Get the best out of Flutter flavors with flutter_flavorizr

Dive into State Management in Flutter

If you have RappiBank, you have Flutter