Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class Paciente extends StatelessWidget {
- final String fotoUrl;
- final String nome;
- final String telefone;
- final String cidade;
- final int id;
- const Paciente(
- {Key key, this.fotoUrl, this.nome, this.telefone, this.cidade, this.id})
- : super(key: key);
- @override
- Widget build(BuildContext context) {
- return Container(
- height: 100,
- width: double.infinity,
- child: Card(
- child: Padding(
- padding: const EdgeInsets.all(10.0),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- children: [
- CircleAvatar(
- radius: 50,
- child: ClipOval(
- child: Image.network(
- fotoUrl,
- ),
- ),
- ),
- Column(
- mainAxisAlignment: MainAxisAlignment.center,
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- nome,
- style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold),
- ),
- Text(telefone),
- Text(cidade),
- Text("ID: " + id.toString())
- ],
- )
- ],
- ),
- )));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement