Advertisement
wildanfuady

List Layout

Oct 13th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class ListExample extends StatelessWidget {
  4. @override
  5. Widget build(BuildContext context) {
  6. return Scaffold(
  7. appBar: AppBar(
  8. title: Text('List Example'),
  9. ),
  10. body: Column(
  11. children: <Widget>[
  12. ListTile(
  13. leading: Icon(Icons.person),
  14. title: Text('Budi Raharjo'),
  15. onTap: () {
  16. print('tapped!');
  17. },
  18. ),
  19. Divider(
  20. color: Colors.grey[300],
  21. ),
  22. ListTile(
  23. leading: Icon(Icons.person),
  24. title: Text('Wawan Hendrawan'),
  25. onTap: () {
  26. print('tapped!');
  27. },
  28. ),
  29. Divider(
  30. color: Colors.grey[300],
  31. ),
  32. ListTile(
  33. leading: Icon(Icons.person),
  34. title: Text('Simanta Levandra'),
  35. onTap: () {
  36. print('tapped!');
  37. },
  38. ),
  39. Divider(
  40. color: Colors.grey[300],
  41. ),
  42. ListTile(
  43. leading: Icon(Icons.person),
  44. title: Text('Muaz Abdullah'),
  45. onTap: () {
  46. print('tapped!');
  47. },
  48. ),
  49. Divider(
  50. color: Colors.grey[300],
  51. ),
  52. ],
  53. ),
  54. );
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement