Skip to content

Instantly share code, notes, and snippets.

@Lesliecalvillo
Created May 22, 2021 00:48
Show Gist options
  • Save Lesliecalvillo/f3cdafda86087871414f883a08b8d23d to your computer and use it in GitHub Desktop.
Save Lesliecalvillo/f3cdafda86087871414f883a08b8d23d to your computer and use it in GitHub Desktop.
POO Act1 Listview icon
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
@Lesliecalvillo
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment