styled_widget 0.2.0+2 copy "styled_widget: ^0.2.0+2" to clipboard
styled_widget: ^0.2.0+2 copied to clipboard

outdated

Simplifying your widget tree structure by defining widget using methods.


Simplifying your widget tree structure by defining widgets using methods.

   Buy Me A Coffee


Thanks to the introduction of extension methods in Dart 2.7.0, styled_widget makes it possible to build widget tree`s more readable and efficient.
styled_widget is build as a tool to enhance your Flutter development experience and to seamlessly integrate with your codebase.

Text('hello world', style: _textStyle)
  .padding(all: 20)
  .decorated(
    borderRadius: BorderRadius.circular(10),
    gradient: _gradient,
  )
  .alignment(Alignment.center)
Raw Flutter (click to show)
Align(
  alignment: Alignment.center,
  child: DecoratedBox(
    decoration: BoxDecoration(
      borderRadius: BorderRadius.circular(10),
      gradient: _gradient,
    ),
    child: Padding(
      padding: EdgeInsets.all(20),
      child: Text(
        'hello world',
        style: _textStyle,
      ),
    ),
  ),
);

Showcase #

Design, Code Design, Code Design, Code

Docs #

See the documentation at styled_widget/wiki for more information about using styled_widget!

Quicklinks

797
likes
0
pub points
96%
popularity

Publisher

unverified uploader

Simplifying your widget tree structure by defining widget using methods.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on styled_widget