Created
June 21, 2019 07:38
-
-
Save ryanlid/45e8746adee325d194287d7e889ba800 to your computer and use it in GitHub Desktop.
This file contains hidden or 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(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: '234', | |
home: Scaffold( | |
body: SafeArea( | |
child: Container( | |
color: Colors.teal.shade600, | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
CircleAvatar( | |
backgroundColor: Colors.red, | |
radius: 50, | |
backgroundImage: NetworkImage( | |
'https://user-gold-cdn.xitu.io/2018/10/19/16689e2bb057f60d?imageView2/1/w/100/h/100/q/85/format/webp/interlace/1')), | |
Container( | |
child: Text( | |
'Angle', | |
style: TextStyle( | |
fontSize: 26.0, | |
color: Colors.white, | |
fontFamily: 'DancingScript', | |
), | |
)), | |
Container( | |
child: Text( | |
'Flutter Developer', | |
style: TextStyle( | |
color: Colors.white, | |
fontFamily: 'SourceSansPro', | |
fontSize: 20.0), | |
)), | |
SizedBox( | |
height: 20.0, | |
width: 150.0, | |
child: Divider( | |
color: Colors.teal.shade100, | |
), | |
), | |
Card( | |
margin: | |
EdgeInsets.symmetric(vertical: 10.0, horizontal: 20.0), | |
child: Padding( | |
padding: const EdgeInsets.all(8.0), | |
child: ListTile( | |
leading: Icon( | |
Icons.phone, | |
color: Colors.teal, | |
), | |
title: Text('010-12345678', | |
style: TextStyle(color: Colors.teal.shade600)), | |
)), | |
), | |
Card( | |
margin: | |
EdgeInsets.symmetric(vertical: 10.0, horizontal: 20.0), | |
child: Padding( | |
padding: const EdgeInsets.all(4.0), | |
child: ListTile( | |
leading: Icon( | |
Icons.email, | |
color: Colors.teal, | |
), | |
title: Text('[email protected]', | |
style: TextStyle(color: Colors.teal.shade600)), | |
), | |
), | |
) | |
], | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Author
ryanlid
commented
Jun 21, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment