the pointless and poorly named kind.
Here’s one example of many:
class Group extends StatelessWidget {
final CrossAxisAlignment crossAxisAlignment;
final List children;
const Group({
super.key,
this.crossAxisAlignment = CrossAxisAlignment.stretch,
required this.children,
});
@override
Widget build(BuildContext context) => Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: crossAxisAlignment,
children: children,
);
}
For those unfamiliar with Flutter, Column is your go-to out of the box widget that’s already flexible and simple enough to implement and customize. Group
exists purely to set a cross axis alignment value, and by name provides no indication as to what it does or how it lays out its children.
All that just to save one line to override the default cross axis alignment…
that’s not the word you’re after.