title: In Flutter, how to place a ListView at the bottom of the screen
body: <p>I'm new to Flutter. How to keep a ListView at the bottom of the screen in Flutter ? I try to put 2 widgets inside a column and put Expanded around the first widget(Text) so it should takes up the remaining screen and the ListView at bottom. But nothing shows up. If I replace the ListView with a Text widget, it works. Not sure what will take to keep the ListView at the bottom.</p>
  <pre><code>import 'package:flutter/material.dart';
  
  final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
  
  void main() {
    runApp(MyApp());
  }
  
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue),
        debugShowCheckedModeBanner: false,
        home: Scaffold(
          body: SafeArea(
            child: Column(children: &lt;Widget&gt;[
              Expanded(
                child: Text('Here I\'m taking all the space.'),
              ),
              Align(
                alignment: Alignment.bottomCenter,
                child: MyWidget(),
                //child: Text(&quot;if use Text widget, it works&quot;),
              ),
            ]),
          ),
        ),
      );
    }
  }
  
  class MyWidget extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return ListView(scrollDirection: Axis.horizontal, children: _getListIcon());
    }
  
    _getListIcon() {
      List&lt;Widget&gt; widgets = [];
      for (int i = 0; i &lt; 10; i++) {
        widgets.add(RaisedButton(
            onPressed: () =&gt; {},
            color: Colors.orange,
            padding: EdgeInsets.all(10.0),
            child: Column(
              children: &lt;Widget&gt;[Icon(Icons.add), Text(&quot;Add&quot;)],
            )));
      }
      return widgets;
    }
  }
  
  </code></pre>