0% found this document useful (0 votes)
5 views3 pages

100 Questions 2

This document is a Flutter application that displays a user profile with a circular avatar, name, and title. It includes contact information such as a phone number and email, presented within styled cards. The layout is designed using a column within a safe area, with specific styling for text and icons.

Uploaded by

Kumar Utsav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

100 Questions 2

This document is a Flutter application that displays a user profile with a circular avatar, name, and title. It includes contact information such as a phone number and email, presented within styled cards. The layout is designed using a column within a safe area, with specific styling for text and icons.

Uploaded by

Kumar Utsav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 3

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: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
CircleAvatar(
radius: 200.0,
backgroundImage:
AssetImage('images/profile.png'),
),
SizedBox(height: 20.0),
Text(
'Angela Yu',
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: 'SixtyfourConvergence',
fontSize: 20.0,
color: Colors.green,
fontWeight: FontWeight.bold,
),
),
Text(
'FLUTTER DEVELOPER',
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: 'Source Code Pro',
fontSize: 20.0,
color: Colors.teal[100],
letterSpacing: 2.5,
fontWeight: FontWeight.bold,
),
),
Card(
color: Colors.white,
margin: EdgeInsets.symmetric(
vertical: 10.0, horizontal:
25.0),
child: Padding(
padding: EdgeInsets.all(15.0),
child: Row(
children: <Widget>[
Icon(
Icons.add_shopping_cart,
size: 40.0,
),
SizedBox(width: 40.0),
Text(
"Tel: +918892979221",
style: TextStyle(
fontSize: 20,
fontFamily: 'Source Code
Pro',
),
)
],
),
)),
Card(
color: Colors.white,
margin: EdgeInsets.symmetric(
vertical: 10.0, horizontal:
25.0),
child: Padding(
padding: EdgeInsets.all(15.0),
child: Row(
children: <Widget>[
Icon(
Icons.email,
size: 40.0,
),
SizedBox(width: 40.0),
Text(
"Email:
[email protected]",
style: TextStyle(
fontSize: 15,
fontFamily: 'Source Code
Pro',
),
)
],
),
))
],
),
))));
}
}

You might also like