title: Flutter widget's extreem code indentation
body: <p>I'm planning on switching from Android and iOS development to Flutter. The thought of only having to maintain one code base is very exciting. At this point I'm still just observing and learning.</p>
  
  <p>One thing that puts me off a little, though, are the huge mountains and valleys in the code indentations when creating widgets. Here is an example taken from <a href="https://stackoverflow.com/a/45133660/3681880">this answer</a>:</p>
  
  <pre><code>  Widget build(BuildContext context) {
      ThemeData themeData = Theme.of(context);
      return new Scaffold(
        body: new Padding(
          padding: const EdgeInsets.all(10.0),
          child:
          new Column(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: &lt;Widget&gt;[
              new Row(
                mainAxisAlignment: MainAxisAlignment.start,
                children: icons.map((IconData iconData) {
                  return new Container(
                    margin: new EdgeInsets.all(10.0),
                    child: new IconButton(
                      icon: new Icon(iconData), onPressed: () {
                      // TODO: Implement
                    }),
                  );
                }).toList(),
              ),
              new Expanded(
                child: new Align(
                  alignment: FractionalOffset.center,
                  child: new AspectRatio(
                    aspectRatio: 1.0,
                    child: new Stack(
                      children: &lt;Widget&gt;[
                        new Positioned.fill(
                          child: new AnimatedBuilder(
                            animation: _controller,
                            builder: (BuildContext context, Widget child) {
                              return new CustomPaint(
                                painter: new ProgressPainter(
                                  animation: _controller,
                                  color: themeData.indicatorColor,
                                  backgroundColor: Colors.white,
                                ),
                              );
                            }
                          ),
                        ),
                        new Align(
                          alignment: FractionalOffset.center,
                          child: new Column(
                            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                            crossAxisAlignment: CrossAxisAlignment.center,
                            children: &lt;Widget&gt;[
                              new Text(
                                'Label', style: themeData.textTheme.subhead),
                              new AnimatedBuilder(
                                animation: _controller,
                                builder: (BuildContext context, Widget child) {
                                  return new Text(
                                    timeRemaining,
                                    style: themeData.textTheme.display4,
                                  );
                                }
                              ),
                              new Text('+1', style: themeData.textTheme.title),
                            ],
                          ),
                        ),
                      ],
                    ),
                  ),
                ),
              ),
              new Container(
                margin: new EdgeInsets.all(10.0),
                child: new Row(
                  mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                  children: &lt;Widget&gt;[
                    new IconButton(icon: new Icon(Icons.delete), onPressed: () {
                      // TODO: Implement delete
                    }),
                    new FloatingActionButton(
                      child: new AnimatedBuilder(
                        animation: _controller,
                        builder: (BuildContext context, Widget child) {
                          return new Icon(
                            _controller.isAnimating
                              ? Icons.pause
                              : Icons.play_arrow
                          );
                        },
                      ),
                      onPressed: () {
                        if (_controller.isAnimating)
                          _controller.stop();
                        else {
                          _controller.reverse(
                            from: _controller.value == 0.0 ? 1.0 : _controller
                              .value,
                          );
                        }
                      },
                    ),
                    new IconButton(
                      icon: new Icon(Icons.alarm_add), onPressed: () {
                      // TODO: Implement add time
                    }),
                  ],
                ),
              ),
            ],
          ),
        ),
      );
    }
  }
  </code></pre>
  
  <p>This seems difficult to read (and therefore maintain) and contrary to principles I've learned about clean code. Most of the dart/flutter code I've seen is pretty similar, but is there a way to break this into smaller pieces or otherwise make it more readable? Or do I just need to get used to this new way of formatting?</p>