ListView Example In flutter

Hi, In this Flutter tutorial I am going to teach how to make list in flutter. Listview is a widget in flutter.

We can also say that Listview is a view that contains the group of items and displays in a scrollable list.
ListView is a default scrollable which does not use another scroll view.

Like that:-

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter ListView Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text("ListView Demo"),
        ),
        body: ListView(
          children: <Widget>[
            ListTile(
            leading: Icon(Icons.zoom_out_map),
            title: Text("zoom_out_map"),),
            ListTile(
              leading: Icon(Icons.account_circle),
              title: Text("account_circle"),
            ),
          ],
        ),
      ),
    );
  }
}

Comments

Popular posts from this blog

Auto slide image with indicator in flutter

Flutter Architecture | Flutter - Architecture Application

Automatic Scrolling Image in flutter