flutterui_modifiers 0.3.1 copy "flutterui_modifiers: ^0.3.1" to clipboard
flutterui_modifiers: ^0.3.1 copied to clipboard

FlutterUI Modifiers is a collection of declarative widget modifiers to make your Flutter code shorter and linear.

example/README.md

FlutterUI Modifiers - Example #

When writing an app in Flutter, your widget hierarchy might look something like this:

List<Widget> list = [];

list.add(
  Center(
    child: Padding(
      padding: EdgeInsets.all(16.0),
      child: Text(
        'Hello, World! 🌍',
        style: TextStyle(
          color: Colors.red,
          fontSize: 22,
        ), // TextStyle
      ), // Text
    ) // Padding
  ), // Center
);

With the flutterui_modifiers package installed you could transform the above code to a modifier-style equivalent which might look something like this:

List<Widget> list = [];

Text('Hello, World! 🌍')
    .font(size: 22)
    .color(Colors.red)
    .padding(all: 16)
    .centered()
    .assign(list);

More examples like this can be found in the in-code documentation.

10
likes
130
pub points
39%
popularity

Publisher

verified publisherlawrencebensaid.nl

FlutterUI Modifiers is a collection of declarative widget modifiers to make your Flutter code shorter and linear.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutterui_modifiers