Created
April 2, 2025 17:15
-
-
Save prakhart111/b3bcbddbf26f4b3c26b19250504f8c58 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: Padding( | |
padding: EdgeInsets.all(25), | |
child: Column( | |
mainAxisSize: MainAxisSize.min, | |
children: [ | |
CircleAvatar( | |
radius: 70, | |
backgroundColor: Colors.deepPurple[200], | |
child: Icon( | |
Icons.person, | |
size: 80, | |
color: Colors.deepPurple[700], | |
), | |
), | |
SizedBox(height: 20), | |
Text( | |
'Sarah Johnson', | |
style: TextStyle( | |
fontSize: 26, | |
fontWeight: FontWeight.bold, | |
color: Colors.deepPurple[900], | |
), | |
), | |
SizedBox(height: 10), | |
Text( | |
'UX/UI Designer', | |
style: TextStyle( | |
fontSize: 18, | |
color: Colors.deepPurple[600], | |
letterSpacing: 1.5, | |
), | |
), | |
SizedBox(height: 20), | |
Divider( | |
color: Colors.deepPurple[200], | |
thickness: 1, | |
), | |
SizedBox(height: 20), | |
Row( | |
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
children: [ | |
IconButton( | |
icon: Icon(Icons.link, color: Colors.deepPurple), | |
onPressed: () {}, | |
), | |
IconButton( | |
icon: Icon(Icons.alternate_email, color: Colors.deepPurple), | |
onPressed: () {}, | |
), | |
IconButton( | |
icon: Icon(Icons.code, color: Colors.deepPurple), | |
onPressed: () {}, | |
), | |
], | |
), | |
], | |
), | |
), | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment