import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Profile Page UI',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: ProfilePage(),
    );
  }
}

class ProfilePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Profile'),
        elevation: 0,
      ),
      body: Column(
        children: <Widget>[
          Container(
            color: Colors.blue,
            width: double.infinity,
            child: Padding(
              padding: const EdgeInsets.symmetric(vertical: 40.0),
              child: Column(
                children: <Widget>[
                  CircleAvatar(
                    radius: 50,
                    backgroundImage: NetworkImage(
                        'https://media.licdn.com/dms/image/C4E03AQHOLm0TKvS9Cw/profile-displayphoto-shrink_400_400/0/1655756384425?e=1697068800&v=beta&t=SbGZjkUj8Jxjj49BGfQNAC2iFUOdW20-tTS4CZ_oXFc'),
                  ),
                  SizedBox(height: 10),
                  Text(
                    'Marcello Politi',
                    style: TextStyle(
                      fontSize: 22,
                      color: Colors.white,
                    ),
                  ),
                  SizedBox(height: 5),
                  Text(
                    '[email protected]',
                    style: TextStyle(
                      fontSize: 16,
                      color: Colors.white70,
                    ),
                  ),
                ],
              ),
            ),
          ),
          Expanded(
            child: ListView(
              children: <Widget>[
                ListTile(
                  leading: Icon(Icons.person),
                  title: Text('About'),
                  subtitle: Text('A brief description about John Doe.'),
                ),
                ListTile(
                  leading: Icon(Icons.email),
                  title: Text('Email'),
                  subtitle: Text('[email protected]'),
                ),
                ListTile(
                  leading: Icon(Icons.phone),
                  title: Text('Phone'),
                  subtitle: Text('+1234567890'),
                ),
                ListTile(
                  leading: Icon(Icons.location_city),
                  title: Text('Address'),
                  subtitle: Text('1234 Elm Street, Springfield'),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}