Skip to content

Instantly share code, notes, and snippets.

@prakhart111
Created April 1, 2025 06:18
Snippet created via Remix API
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: Card(
elevation: 8,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(15),
),
margin: EdgeInsets.symmetric(horizontal: 25),
child: Padding(
padding: EdgeInsets.all(20),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CircleAvatar(
radius: 60,
backgroundImage: NetworkImage(
'https://img-wrapper.vercel.app/image?url=https://placehold.co/120x120.png',
),
),
SizedBox(height: 15),
Text(
'John Doe',
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
color: Colors.teal[900],
),
),
SizedBox(height: 10),
Text(
'SOFTWARE DEVELOPER',
style: TextStyle(
fontSize: 16,
color: Colors.teal[700],
letterSpacing: 2.5,
),
),
SizedBox(height: 20),
Card(
color: Colors.white,
margin: EdgeInsets.symmetric(horizontal: 10),
child: ListTile(
leading: Icon(
Icons.phone,
color: Colors.teal,
),
title: Text(
'+1 (123) 456-7890',
style: TextStyle(
color: Colors.teal[900],
fontSize: 16,
),
),
),
),
SizedBox(height: 10),
Card(
color: Colors.white,
margin: EdgeInsets.symmetric(horizontal: 10),
child: ListTile(
leading: Icon(
Icons.email,
color: Colors.teal,
),
title: Text(
'john.doe@example.com',
style: TextStyle(
color: Colors.teal[900],
fontSize: 16,
),
),
),
),
],
),
),
),
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment