Created
May 22, 2021 00:48
-
-
Save Lesliecalvillo/f3cdafda86087871414f883a08b8d23d to your computer and use it in GitHub Desktop.
POO Act1 Listview icon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MiviajeApp()); | |
}//fin de main | |
class MiviajeApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
final title ='servicios de viaje Leslie calvillo'; | |
return MaterialApp( | |
title: title, | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text(title), | |
),//fin de appBar | |
body: ListView( | |
children: <Widget>[ | |
ListTile( | |
leading: Icon(Icons.construction,color: Colors.green), | |
title: Text('icono de construccion'), | |
),//fin de ListTitle niño | |
ListTile( | |
leading: Icon(Icons.bluetooth,color: Colors.black), | |
title: Text('icono de bluetooth '), | |
),//fin de ListTile niño | |
ListTile( | |
leading: Icon(Icons.local_airport,color: Colors.green), | |
title: Text('icono de airopuerto'), | |
),//fin de ListTile niño | |
ListTile( | |
leading: Icon(Icons.restaurant,color: Colors.pink), | |
title: Text('icono de restaurante'), | |
),//fin de ListTile niño | |
ListTile( | |
leading: Icon(Icons.camera,color: Colors.blue), | |
title: Text('icono de camara'), | |
),//fin de ListTile niño | |
ListTile( | |
leading: Icon(Icons.alarm,color: Colors.green), | |
title: Text('icono de alarma'), | |
),//fin de ListTile niño | |
],//fin de niños Widget [] | |
),//fin de Listvew | |
),//fin de Scaffold | |
);// fin de MaterialApp | |
}//fin de widget | |
}//fin de la clase Miviaje herencia StatelessWidget |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Link
https://dartpad.dev/f3cdafda86087871414f883a08b8d23d