Created
April 2, 2025 07:46
-
-
Save prakhart111/d43b9ee53e4314081812eefeeb5350b2 to your computer and use it in GitHub Desktop.
Snippet created via Remix API
This file contains 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: 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, | |
backgroundColor: Colors.teal.shade100, | |
child: Icon( | |
Icons.person, | |
size: 80, | |
color: Colors.teal.shade700, | |
), | |
), | |
SizedBox(height: 15), | |
Text( | |
'John Doe', | |
style: TextStyle( | |
fontSize: 24, | |
fontWeight: FontWeight.bold, | |
color: Colors.teal.shade900, | |
), | |
), | |
SizedBox(height: 10), | |
Text( | |
'Software Developer', | |
style: TextStyle( | |
fontSize: 18, | |
color: Colors.teal.shade600, | |
letterSpacing: 1.5, | |
), | |
), | |
SizedBox(height: 20), | |
Divider( | |
color: Colors.teal.shade200, | |
thickness: 1, | |
), | |
SizedBox(height: 15), | |
Row( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: [ | |
Icon(Icons.email, color: Colors.teal), | |
SizedBox(width: 10), | |
Text( | |
'[email protected]', | |
style: TextStyle( | |
color: Colors.teal.shade700, | |
fontSize: 16, | |
), | |
), | |
], | |
), | |
], | |
), | |
), | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment