Created
February 18, 2021 06:04
-
-
Save siumhossain/28931303400a79da846d7eaea56cf6eb to your computer and use it in GitHub Desktop.
udemy_course:card_design
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( | |
| home: Scaffold( | |
| backgroundColor: Colors.teal, | |
| body: SafeArea( | |
| child: Column( | |
| mainAxisAlignment: MainAxisAlignment.center, | |
| children: <Widget>[ | |
| CircleAvatar( | |
| radius: 50.0, | |
| backgroundImage: AssetImage('images/angela.jpg'), | |
| ), | |
| Text( | |
| 'Angela Yu', | |
| style: TextStyle( | |
| fontFamily: 'Pacifico', | |
| fontSize: 40.0, | |
| color: Colors.white, | |
| fontWeight: FontWeight.bold, | |
| ), | |
| ), | |
| Text( | |
| 'FLUTTER DEVELOPER', | |
| style: TextStyle( | |
| fontFamily: 'Source Sans Pro', | |
| color: Colors.teal.shade100, | |
| fontSize: 20.0, | |
| letterSpacing: 2.5, | |
| fontWeight: FontWeight.bold, | |
| ), | |
| ), | |
| SizedBox( | |
| height: 20.0, | |
| width: 150.0, | |
| child: Divider( | |
| color: Colors.teal.shade100, | |
| ), | |
| ), | |
| Card( | |
| margin: EdgeInsets.symmetric(vertical: 10.0, horizontal: 25.0), | |
| child: ListTile( | |
| leading: Icon( | |
| Icons.phone, | |
| color: Colors.teal, | |
| ), | |
| title: Text( | |
| '+44 123 456 789', | |
| style: TextStyle( | |
| color: Colors.teal.shade900, | |
| fontFamily: 'Source Sans Pro', | |
| fontSize: 20.0, | |
| ), | |
| ), | |
| )), | |
| Card( | |
| margin: EdgeInsets.symmetric(vertical: 10.0, horizontal: 25.0), | |
| child: ListTile( | |
| leading: Icon( | |
| Icons.email, | |
| color: Colors.teal, | |
| ), | |
| title: Text( | |
| '[email protected]', | |
| style: TextStyle( | |
| fontSize: 20.0, | |
| color: Colors.teal.shade900, | |
| fontFamily: 'Source Sans Pro'), | |
| ), | |
| )) | |
| ], | |
| )), | |
| ), | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment