Skip to content

Instantly share code, notes, and snippets.

@teerasej
Created April 1, 2020 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teerasej/330994f7a7bfe82fb1868bed3667f624 to your computer and use it in GitHub Desktop.
Save teerasej/330994f7a7bfe82fb1868bed3667f624 to your computer and use it in GitHub Desktop.
import 'package:contact_app/contact_model.dart';
import 'package:flutter/material.dart';
class DetailPage extends StatelessWidget {
Result contact;
DetailPage(this.contact);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("${contact.name.first} ${contact.name.last}"),
),
body: Container(
padding: EdgeInsets.all(10.0),
child: Column(
children: <Widget>[
Image.network(contact.picture.large, width: 200.0, height: 200.0,),
],
),
),
bottomNavigationBar: Container(
padding: EdgeInsets.fromLTRB(10, 0, 10, 30),
child: RaisedButton(
onPressed: () {
},
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Icon(Icons.phone),
Text('Call')
],
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment