Created
April 2, 2025 17:05
-
-
Save prakhart111/476bf4c4bf0f5fa09dd1ced2bd0d7179 to your computer and use it in GitHub Desktop.
Snippet created via Remix API
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: 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( | |
'[email protected]', | |
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