Created
April 2, 2025 17:07
-
-
Save prakhart111/6ec282078da6d8a8c87719ee5545f16d 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.deepPurple[100], | |
body: SafeArea( | |
child: Center( | |
child: Card( | |
elevation: 10, | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.circular(20), | |
), | |
margin: EdgeInsets.symmetric(horizontal: 25), | |
child: Container( | |
decoration: BoxDecoration( | |
borderRadius: BorderRadius.circular(20), | |
gradient: LinearGradient( | |
colors: [ | |
Colors.deepPurple[400]!, | |
Colors.deepPurple[600]! | |
], | |
begin: Alignment.topLeft, | |
end: Alignment.bottomRight, | |
), | |
), | |
child: Padding( | |
padding: EdgeInsets.all(25), | |
child: Column( | |
mainAxisSize: MainAxisSize.min, | |
children: [ | |
CircleAvatar( | |
radius: 70, | |
backgroundImage: NetworkImage( | |
'https://img-wrapper.vercel.app/image?url=https://placehold.co/140x140.png', | |
), | |
), | |
SizedBox(height: 20), | |
Text( | |
'Sarah Johnson', | |
style: TextStyle( | |
fontSize: 26, | |
fontWeight: FontWeight.bold, | |
color: Colors.white, | |
), | |
), | |
SizedBox(height: 10), | |
Text( | |
'UX/UI DESIGNER', | |
style: TextStyle( | |
fontSize: 18, | |
color: Colors.white70, | |
letterSpacing: 2.5, | |
), | |
), | |
SizedBox(height: 25), | |
Container( | |
decoration: BoxDecoration( | |
color: Colors.white.withOpacity(0.2), | |
borderRadius: BorderRadius.circular(10), | |
), | |
child: ListTile( | |
leading: Icon( | |
Icons.phone, | |
color: Colors.white, | |
), | |
title: Text( | |
'+1 (987) 654-3210', | |
style: TextStyle( | |
color: Colors.white, | |
fontSize: 16, | |
), | |
), | |
), | |
), | |
SizedBox(height: 15), | |
Container( | |
decoration: BoxDecoration( | |
color: Colors.white.withOpacity(0.2), | |
borderRadius: BorderRadius.circular(10), | |
), | |
child: ListTile( | |
leading: Icon( | |
Icons.email, | |
color: Colors.white, | |
), | |
title: Text( | |
'[email protected]', | |
style: TextStyle( | |
color: Colors.white, | |
fontSize: 16, | |
), | |
), | |
), | |
), | |
], | |
), | |
), | |
), | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment