paddinger_annotations 0.2.0 copy "paddinger_annotations: ^0.2.0" to clipboard
paddinger_annotations: ^0.2.0 copied to clipboard

Annotations for the paddinger Flutter code-generator. This package does nothing without paddinger too.

example/example.md

paddings.dart

// ignore: unused_import
import 'package:flutter/material.dart';
import 'package:paddinger_annotations/paddinger_annotations.dart';

part 'paddings.g.dart';

@paddinger
const double PADDING_NORMAL = 8;
@paddinger
const double PADDING_EXTREME = 56;

main.dart

import 'package:example/paddings.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
          body: Column(mainAxisAlignment: MainAxisAlignment.center, children: [
        NormalAllPadding(
            child: Row(
          children: [
            Text("Hello Paddinger"),
          ],
        )),
        ExtremeVerticalPadding(
            child: Row(
          children: [
            Text("Hello Paddinger again"),
          ],
        ))
      ])),
    );
  }
}
2
likes
160
points
67
downloads

Publisher

verified publisheremanuelepapa.dev

Weekly Downloads

Annotations for the paddinger Flutter code-generator. This package does nothing without paddinger too.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on paddinger_annotations