super_widgets 0.0.1 copy "super_widgets: ^0.0.1" to clipboard
super_widgets: ^0.0.1 copied to clipboard

outdated

Make Flutter widgets' code becomes shorter and richer

super_widgets #

Make Flutter widgets' code becomes shorter and richer.

This project is an attempt to combine multiple Flutter widgets to make code shorter. For example, instead of creating a Stack with padding and color by having Container > Stack, we can use SuperStack.

Installation #

In your pubspec.yaml file within your Flutter Project:

dependencies:
  super_widgets: ^0.0.1

See more about how to install in pubspec.dev:

Widgets #

List of SuperWidgets is:

SuperStack #

Is the combination of Container > Stack

Before:

Container(
  color: Colors.blueAccent,
  margin: EdgeInsets.all(10),
  padding: EdgeInsets.all(20),
  alignment: Alignment.bottomCenter,
  child: Stack(
    fit: StackFit.loose,
    alignment: Alignment.centerRight,
    children: <Widget>[
      Container(color: Colors.red, width: 200, height: 200),
      Container(color: Colors.green, width: 100, height: 100),
      Text('SuperStack demo'),
    ],
  ),
)

After

SuperStack(
  color: Colors.blueAccent,
  margin: EdgeInsets.all(10),
  padding: EdgeInsets.all(20),
  innerAlignment: Alignment.bottomCenter,
  alignment: Alignment.centerRight,
  fit: StackFit.loose,
  children: <Widget>[
    Container(color: Colors.red, width: 200, height: 200),
    Container(color: Colors.green, width: 100, height: 100),
    Text('SuperStack demo'),
  ],
)

Example #

A sample app can be found in the example/ folder.

2
likes
0
pub points
0%
popularity

Publisher

verified publisherfluttervn.com

Make Flutter widgets&#x27; code becomes shorter and richer

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on super_widgets