90 lines
2.6 KiB
Dart
90 lines
2.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
void main() {
|
|
runApp(MiCard());
|
|
}
|
|
|
|
class MiCard extends StatelessWidget {
|
|
const MiCard({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
home: Scaffold(
|
|
backgroundColor: Colors.teal,
|
|
body: SafeArea(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: <Widget>[
|
|
CircleAvatar(
|
|
backgroundColor: Colors.white,
|
|
radius: 50.0,
|
|
backgroundImage: AssetImage("assets/man.jpg"),
|
|
),
|
|
Text(
|
|
'Lorem Ipsum',
|
|
style: TextStyle(
|
|
fontSize: 40.0,
|
|
color: Colors.white,
|
|
fontWeight: FontWeight.bold,
|
|
fontFamily: 'Pacifico',
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 5.0,
|
|
),
|
|
Text(
|
|
'Backend Engineer',
|
|
style: TextStyle(
|
|
fontSize: 20.0,
|
|
color: Colors.teal[100],
|
|
fontFamily: 'SourceCodePro',
|
|
letterSpacing: 2.5,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 20.0,
|
|
width: 150.0,
|
|
child: Divider(
|
|
color: Colors.teal[300],
|
|
),
|
|
),
|
|
Card(
|
|
color: Colors.white,
|
|
margin: EdgeInsets.symmetric(vertical: 10.0, horizontal: 25.0),
|
|
child: ListTile(
|
|
leading: Icon(Icons.phone),
|
|
title: Text(
|
|
'+911234567890',
|
|
style: TextStyle(
|
|
fontFamily: "SourceCodePro",
|
|
fontSize: 20.0,
|
|
color: Colors.teal[800],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Card(
|
|
color: Colors.white,
|
|
margin: EdgeInsets.symmetric(vertical: 10.0, horizontal: 25.0),
|
|
child: ListTile(
|
|
leading: Icon(Icons.email),
|
|
title: Text(
|
|
'mail@mail.com',
|
|
style: TextStyle(
|
|
fontFamily: "SourceCodePro",
|
|
fontSize: 20.0,
|
|
color: Colors.teal[800],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|