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.
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