-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrecados_widget.dart
More file actions
35 lines (31 loc) · 853 Bytes
/
Copy pathrecados_widget.dart
File metadata and controls
35 lines (31 loc) · 853 Bytes
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
import 'package:flutter/material.dart';
import 'package:ola_mundo/models/recados.dart';
class ListRecados extends StatelessWidget {
final Recados recados;
const ListRecados(this.recados);
@override
Widget build(BuildContext context) {
return ListTile(
title: Text(recados.titulo),
subtitle: Text(recados.descricao),
trailing: Container(
width: 100,
child: Row(children: <Widget>[
IconButton(
icon: Icon(Icons.edit),
color: Colors.blueGrey,
onPressed: () {
Navigator.of(context).pushNamed('/form', arguments: recados);
}
),
IconButton(
icon: Icon(Icons.delete,),
color: Colors.red,
onPressed: () {}
),
],
),
),
);
}
}