Flutter UI Widgets

Nov 9 2021 · Dart 2.14, Flutter 2.5, VS Code 1.61

Part 1: Flutter UI Widgets

05. Create Scrollable Contents

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 04. Work with Images Next episode: 06. Work with BottomNavigationBar

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

So far, the main page displays only one ArticleCard in the Column. Let’s add more cards to the Column.

...
SingleChildScrollView()
  child: Column(
    children: <Widget>[
...
...
ListView(
  children: <Widget>[
    ArticleCard(article: articles[0]),
    ArticleCard(article: articles[1]),
    ArticleCard(article: articles[2]),
  ],
),
...
GridView.count(
  crossAxisCount: 2,
  children: <Widget>[
    ArticleCard(article: articles[0]),
    ArticleCard(article: articles[1]),
    ArticleCard(article: articles[2]),
  ],
),
childAspectRatio: 0.95,
ListView.builder(
  itemCount: articles.length,
  itemBuilder: (BuildContext context, int index) {
    return ArticleCard(article: articles[index]);
  },
),