by matchbok · 6y ago · 0 comments
body: Stack(
children: <Widget>[
LayoutBuilder(
builder: (ctx, constraints) => Container(
width: double.infinity,
height: constraints.maxHeight - 67.0,
padding: const EdgeInsets.fromLTRB(20.0, 20.0, 20.0, 0.0),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Column(
mainAxisSize: MainAxis
....From my experience, using the above style with its data binding is nicer than hunting through XML or whatever GUI you use and seeing how that relates to your code.
Easier to navigate and debug. But I agree it can look overwhelming if it’s not split into smaller widgets.
What I always wish I had was a better way to create functions that build smaller units so I didn't have be so many tabs deep. It can be done, but it's not fun or straightforward.