Skip to content

Instantly share code, notes, and snippets.

@prakhart111
Created April 2, 2025 17:08
Show Gist options
  • Save prakhart111/97d64b28d0b8b9cc79a046ec2c7c3594 to your computer and use it in GitHub Desktop.
Save prakhart111/97d64b28d0b8b9cc79a046ec2c7c3594 to your computer and use it in GitHub Desktop.
Snippet created via Remix API
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.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,
backgroundImage: NetworkImage(
'https://img-wrapper.vercel.app/image?url=https://placehold.co/400x400.png?text=Profile',
),
),
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: FaIcon(FontAwesomeIcons.linkedin, color: Colors.deepPurple),
onPressed: () {},
),
IconButton(
icon: FaIcon(FontAwesomeIcons.twitter, color: Colors.deepPurple),
onPressed: () {},
),
IconButton(
icon: FaIcon(FontAwesomeIcons.github, color: Colors.deepPurple),
onPressed: () {},
),
],
),
],
),
),
),
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment