-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist.dart
47 lines (43 loc) · 1.02 KB
/
list.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// inside main.dart
import 'package:flutter/material.dart';
import 'package:path/path.dart';
import 'home.dart';
void main() {
runApp(MaterialApp(
title: "Exploring list",
home: Scaffold(
appBar: AppBar(
title: Center(
child: Text(
("Hello World"),
style: TextStyle(
fontFamily: "Ralewy",
),
textAlign: TextAlign.center,
)),
),
body: getlistview(),
),
));
}
Widget getlistview() {
var listview = ListView(
children: <Widget>[
ListTile(
leading: Icon(Icons.accessible),
title: Text("Accessible"),
subtitle: Text(("Everything is accessible")),
// onTap: bookFlight(context),
trailing: Icon(Icons.wb_auto),
),
ListTile(
leading: Icon(Icons.accessible),
title: Text("Accessible"),
subtitle: Text(("Everything is accessible")),
// onTap: bookFlight(context),
trailing: Icon(Icons.wb_auto),
),
],
);
return listview;
}