A sample is like below
Class MyApp extends StatelessWidget {
@override
Widget build (BuildContext context){
Final title = 'ListTitle';
Return MaterialApp(
Title : title,
home : Scaffold(
appBar : AppBar(title:Text(title)),
Body : ListView(children :[ListTitle(leading:Icon(Icons.map),title:Text('Map')),ListTitle(title:Text('Album'),leading:Icon(Icons.map))])
)
);
}
}
References:
https://flutter.io/cookbook/lists/basic-list/
Class MyApp extends StatelessWidget {
@override
Widget build (BuildContext context){
Final title = 'ListTitle';
Return MaterialApp(
Title : title,
home : Scaffold(
appBar : AppBar(title:Text(title)),
Body : ListView(children :
)
);
}
}
References:
https://flutter.io/cookbook/lists/basic-list/
No comments:
Post a Comment