title: Is there a way to align a widget to the far right of a row in Flutter?
body: <p>I have a row in Flutter with two widgets. I'm trying to keep the first widget centered in the middle of the screen and the second widget forced to the far right of the screen.</p>
  
  <p>I've tried using Spacer(). This results in the app returning a blank screen.</p>
  
  <p>I've also tried using Expanded. This sends the second widget off the screen completely.</p>
  
  <p>Trying mainAxisAlignment: MainAxisAlignment.spaceBetween did not seem to have any effect.</p>
  
  <pre><code>@override
    Widget build(BuildContext context) {
      return new Container(
        height: MediaQuery.of(context).size.height,
        child: SingleChildScrollView(
          child: new Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisSize: MainAxisSize.max,
            children: &lt;Widget&gt;[
              new Container(
                child: new GestureDetector(
                  onTap: () {
                    FocusScope.of(context).requestFocus(new FocusNode());
                  },
                  child: Column(
                    children: &lt;Widget&gt;[
                      SizedBox(height: 40.0),
                      Row(
                        mainAxisAlignment: MainAxisAlignment.center,
                        children: &lt;Widget&gt;[
                          new Column(
                            children: &lt;Widget&gt;[
                              new Container(
                                child: Row(
                                  mainAxisAlignment:MainAxisAlignment.spaceBetween,
                                  children: &lt;Widget&gt;[
                                    Container(),
                                    Container(
                                      child: Text(
                                        'Profile',
                                        textAlign: TextAlign.center,
                                        style: TextStyle(
                                          fontFamily: 'Lato',
                                          color: Colors.white,
                                          fontSize: 50.0,
                                          fontWeight: FontWeight.w700,
                                        ),
                                      ),
                                    ),
                                    Container(
                                      child: IconButton(
                                        icon: Icon(
                                          Icons.settings,
                                          color: Colors.white,
                                          size: 30.0,
                                        ),
                                        onPressed: () {
                                          Navigator.push(
                                            context,
                                            MaterialPageRoute(
                                              builder: (context) =&gt; OnBoarding()),
                                          );
                                        }),
                                    ),
                                  ]),
                                ),
                              ),
                            ],
                          ),
                        ],
                      ),
  </code></pre>