Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class ListExample extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text('List Example'),
- ),
- body: Column(
- children: <Widget>[
- ListTile(
- leading: Icon(Icons.person),
- title: Text('Budi Raharjo'),
- onTap: () {
- print('tapped!');
- },
- ),
- Divider(
- color: Colors.grey[300],
- ),
- ListTile(
- leading: Icon(Icons.person),
- title: Text('Wawan Hendrawan'),
- onTap: () {
- print('tapped!');
- },
- ),
- Divider(
- color: Colors.grey[300],
- ),
- ListTile(
- leading: Icon(Icons.person),
- title: Text('Simanta Levandra'),
- onTap: () {
- print('tapped!');
- },
- ),
- Divider(
- color: Colors.grey[300],
- ),
- ListTile(
- leading: Icon(Icons.person),
- title: Text('Muaz Abdullah'),
- onTap: () {
- print('tapped!');
- },
- ),
- Divider(
- color: Colors.grey[300],
- ),
- ],
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement