Skip to content

Instantly share code, notes, and snippets.

@alamsyahh15
Created September 23, 2019 14:48
Show Gist options
  • Save alamsyahh15/5f5454761216800d12a0c475bb7336c0 to your computer and use it in GitHub Desktop.
Save alamsyahh15/5f5454761216800d12a0c475bb7336c0 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class PageBasicList extends StatelessWidget {
const PageBasicList({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Page Basic List'),
backgroundColor: Colors.red,
),
body: ListView(
children: <Widget>[
Padding(
padding: EdgeInsets.all(8.0),
child: ListTile(
leading: Icon(Icons.access_alarm),
title: Text('alarm'),
),
),
ListTile(
leading: Icon(Icons.phone),
title: Text('Phone'),
),
ListTile(
leading: Icon(Icons.phone_android),
title: Text('Phone Android'),
)
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment