DiscoverModule/lib/ui_screen/profile.dart

365 lines
14 KiB
Dart
Raw Permalink Normal View History

2024-05-20 10:29:02 +00:00
import 'package:discover_module/custom_widget/text.dart';
import 'package:discover_module/ui_screen/newformlist.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_profile_picture/flutter_profile_picture.dart';
class Profile extends StatefulWidget {
const Profile({super.key});
@override
State<Profile> createState() => _ProfileState();
}
class _ProfileState extends State<Profile> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Profile'),
actions: const [
Padding(
padding: const EdgeInsets.all(8.0),
child: Text("View Similar"),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Text("Request Profile"),
)
],
),
body: ListView(
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Row(
children: [
const Padding(
padding: EdgeInsets.all(10.0),
child: ProfilePicture(
name: 'Gerosa, Gino',
radius: 31,
fontsize: 21,
),
),
Column(
children: [
// Text(
// "Gerosa, Gino",
// style: TextStyle(
// fontSize: 22.0,
// color: Colors.black,
// ),
// ),
Text1(
title: "Gerosa, Gino",
txtcolor: Colors.black,
txtfont: 22.0),
// Text(
// "Cardiac Surgery",
// style: TextStyle(
// fontWeight: FontWeight.bold, fontSize: 14.0),
// ),
Text1(
title: "Cardiac Surgery",
txtcolor: Colors.black,
fontweight: FontWeight.bold,
txtfont: 14.0),
],
),
],
),
Padding(
padding: const EdgeInsets.symmetric(
vertical: 30.0, horizontal: 14.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Row(children: [
const Icon(
Icons.location_city_sharp,
color: Color.fromARGB(255, 0, 71, 132),
),
const SizedBox(
width: 3.0,
),
Expanded(
// child: Text(
// "Azienda Ospedaliera di Padova",
// style: TextStyle(
// fontWeight: FontWeight.bold, fontSize: 14.0),
// ),
child: Text1(
title: "Azienda Ospedaliera di Padova",
txtcolor: Colors.black,
txtfont: 14.0,
fontweight: FontWeight.bold,
)),
]),
const SizedBox(
height: 8.0,
),
Row(children: [
const Icon(
Icons.location_pin,
color: Color.fromARGB(255, 0, 71, 132),
),
const SizedBox(
width: 3.0,
),
Expanded(
// child: Text(
// "Via Giustiniani, 2, Padova, Veneto 35128, Italy",
// style: TextStyle(
// fontWeight: FontWeight.bold, fontSize: 14.0),
// ),
child: Text1(
title:
"Via Giustiniani, 2, Padova, Veneto 35128, Italy",
txtcolor: Colors.black,
fontweight: FontWeight.bold,
txtfont: 14.0),
),
]),
const SizedBox(
height: 8.0,
),
Row(children: [
const Icon(
Icons.phone,
color: Color.fromARGB(255, 0, 71, 132),
),
const SizedBox(
width: 3.0,
),
// Text(
// "+390498212410 X 12",
// style: TextStyle(
// fontWeight: FontWeight.bold, fontSize: 14.0),
// ),
Text1(
title: "+390498212410 X 12",
txtcolor: Colors.black,
fontweight: FontWeight.bold,
txtfont: 14.0),
]),
const SizedBox(
height: 8.0,
),
Row(children: [
const Icon(
Icons.call,
color: Color.fromARGB(255, 0, 71, 132),
),
const SizedBox(
width: 3.0,
),
Text1(
title: "+390498212410 X 12",
txtcolor: Colors.black,
fontweight: FontWeight.bold,
txtfont: 14.0),
]),
const SizedBox(
height: 8.0,
),
Row(children: [
const Icon(
Icons.email,
color: Color.fromARGB(255, 0, 71, 132),
),
const SizedBox(
width: 3.0,
),
// Text(
// "Gerosa,Gino@gmail.com",
// style: TextStyle(
// fontWeight: FontWeight.bold, fontSize: 14.0),
// ),
Text1(
title: "Gerosa,Gino@gmail.com",
txtcolor: Colors.black,
fontweight: FontWeight.bold,
txtfont: 14.0),
]),
],
),
),
Padding(
padding: EdgeInsets.only(bottom: 18.0),
child: Card(
surfaceTintColor: Colors.white,
margin: EdgeInsets.symmetric(horizontal: 15.0, vertical: 5.0),
clipBehavior: Clip.antiAlias,
color: Colors.white,
elevation: 5.0,
child: Padding(
padding:
EdgeInsets.symmetric(horizontal: 1.0, vertical: 22.0),
child: Row(
children: <Widget>[
Expanded(
child: Column(
children: <Widget>[
// Text(
// "Affliations",
// style: TextStyle(
// color: Color.fromARGB(255, 0, 71, 137),
// fontSize: 13.0,
// fontWeight: FontWeight.bold,
// ),
// ),
Text1(
title: "Affliations",
txtcolor: Color.fromARGB(255, 0, 71, 137),
fontweight: FontWeight.bold,
txtfont: 13.0),
const SizedBox(
height: 5.0,
),
// Text(
// "75",
// style: TextStyle(
// fontSize: 13.0,
// color: Color.fromARGB(255, 0, 71, 137),
// ),
// )
Text1(
title: "75",
txtfont: 13.0,
txtcolor: Color.fromARGB(255, 0, 71, 137),
)
],
),
),
Expanded(
child: Column(
children: <Widget>[
// Text(
// "Events",
// style: TextStyle(
// color: Color.fromARGB(255, 0, 71, 137),
// fontSize: 13.0,
// fontWeight: FontWeight.bold,
// ),
// ),
Text1(
title: "Events",
txtcolor: Color.fromARGB(255, 0, 71, 137),
fontweight: FontWeight.bold,
txtfont: 13.0),
const SizedBox(
height: 5.0,
),
// Text(
// "0",
// style: TextStyle(
// fontSize: 13.0,
// color: Color.fromARGB(255, 0, 71, 137),
// ),
// )
Text1(
title: "0",
txtfont: 13.0,
txtcolor: Color.fromARGB(255, 0, 71, 137),
)
],
),
),
Expanded(
child: Column(
children: <Widget>[
// Text(
// "Publications",
// style: TextStyle(
// color: Color.fromARGB(255, 0, 71, 137),
// fontSize: 13.0,
// fontWeight: FontWeight.bold,
// ),
// ),
Text1(
title: "Publications",
txtcolor: Color.fromARGB(255, 0, 71, 137),
fontweight: FontWeight.bold,
txtfont: 13.0),
SizedBox(
height: 5.0,
),
// Text(
// "251",
// style: TextStyle(
// fontSize: 13.0,
// color: Color.fromARGB(255, 0, 71, 137),
// ),
// )
Text1(
title: "251",
txtfont: 13.0,
txtcolor: Color.fromARGB(255, 0, 71, 137),
)
],
),
),
Expanded(
child: Column(
children: <Widget>[
// Text(
// "Trails",
// style: TextStyle(
// color: Color.fromARGB(255, 0, 71, 137),
// fontSize: 13.0,
// fontWeight: FontWeight.bold,
// ),
// ),
Text1(
title: "Trails",
txtcolor: Color.fromARGB(255, 0, 71, 137),
fontweight: FontWeight.bold,
txtfont: 13.0),
SizedBox(
height: 5.0,
),
// Text(
// "1",
// style: TextStyle(
// fontSize: 13.0,
// color: Color.fromARGB(255, 0, 71, 137),
// ),
// )
Text1(
title: "1",
txtfont: 13.0,
txtcolor: Color.fromARGB(255, 0, 71, 137),
)
],
),
),
],
),
),
),
)
],
),
],
),
floatingActionButton: Visibility(
visible: true,
child: FloatingActionButton(
onPressed: () {
Navigator.push(
context, MaterialPageRoute(builder: (context) => FormList()));
},
foregroundColor: Colors.white,
backgroundColor: const Color.fromARGB(255, 0, 71, 132),
child: new Icon(Icons.add),
),
),
);
}
}