2024-06-27 08:38:43 +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({Key? key, required this.text}) : super(key: key);
|
|
|
|
// final String text;
|
|
|
|
// @override
|
|
|
|
// State<Profile> createState() => _ProfileState();
|
|
|
|
// }
|
|
|
|
|
|
|
|
// class _ProfileState extends State<Profile> {
|
|
|
|
// @override
|
|
|
|
// void initState() {
|
|
|
|
// // TODO: implement initState
|
|
|
|
// super.initState();
|
|
|
|
// print("Widget_isssIndex_iss ${widget.text}");
|
|
|
|
// }
|
|
|
|
|
|
|
|
// @override
|
|
|
|
// Widget build(BuildContext context) {
|
|
|
|
// return SafeArea(
|
|
|
|
// child: 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),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// );
|
|
|
|
// }
|
|
|
|
// }
|
2024-06-28 08:14:42 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////////
|
|
|
|
// import 'package:discover_module/custom_widget/text.dart';
|
|
|
|
// import 'package:discover_module/hive_fun.dart';
|
|
|
|
// import 'package:discover_module/ui_screen/interactionform/NewtworkConnectivity.dart';
|
|
|
|
// import 'package:discover_module/ui_screen/interactionform/configprovider.dart';
|
|
|
|
// import 'package:discover_module/ui_screen/interactionform/interaction_screen.dart';
|
|
|
|
// import 'package:discover_module/ui_screen/interactionform/interactionlistscreen.dart';
|
|
|
|
// import 'package:discover_module/ui_screen/newformlist.dart';
|
|
|
|
// import 'package:flutter/cupertino.dart';
|
|
|
|
// import 'package:flutter/material.dart';
|
|
|
|
// import 'package:flutter/rendering.dart';
|
|
|
|
// import 'package:flutter/widgets.dart';
|
|
|
|
// import 'package:flutter_profile_picture/flutter_profile_picture.dart';
|
|
|
|
|
|
|
|
// class Profile extends StatefulWidget {
|
|
|
|
// const Profile({Key? key, required this.text}) : super(key: key);
|
|
|
|
// final Map<dynamic, dynamic> text;
|
|
|
|
|
|
|
|
// @override
|
|
|
|
// State<Profile> createState() => _ProfileState();
|
|
|
|
// }
|
|
|
|
|
|
|
|
// class _ProfileState extends State<Profile> {
|
|
|
|
// bool isonline = false;
|
|
|
|
|
|
|
|
// @override
|
|
|
|
// void initState() {
|
|
|
|
// // TODO: implement initState
|
|
|
|
// super.initState();
|
|
|
|
// print("pooja123");
|
|
|
|
|
|
|
|
// getuserdetails();
|
|
|
|
// print("Widget_isssIndex_iss ${widget.text}");
|
|
|
|
// print("Widget_isssIndex_iss ${widget.text!["id"]},${widget.text!["name"]}");
|
|
|
|
// }
|
|
|
|
|
|
|
|
// getuserdetails() async {
|
|
|
|
// // HiveFunctions.getindexUser(widget.text);
|
|
|
|
|
|
|
|
// NetworkConnectivity networkConnectivity = NetworkConnectivity();
|
|
|
|
// bool isonline1 = await networkConnectivity.isInternetAvailable();
|
|
|
|
|
|
|
|
// setState(() {
|
|
|
|
// print("Profile_isOnline: $isonline1");
|
|
|
|
// isonline = isonline1;
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
|
|
|
|
// @override
|
|
|
|
// Widget build(BuildContext context) {
|
|
|
|
// return SafeArea(
|
|
|
|
// child: 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: [
|
|
|
|
// Padding(
|
|
|
|
// padding: EdgeInsets.all(10.0),
|
|
|
|
// child: ProfilePicture(
|
|
|
|
// name: widget.text!["name"],
|
|
|
|
// radius: 31,
|
|
|
|
// fontsize: 21,
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// Column(
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
// children: [
|
|
|
|
// // Text(
|
|
|
|
// // "Gerosa, Gino",
|
|
|
|
// // style: TextStyle(
|
|
|
|
// // fontSize: 22.0,
|
|
|
|
// // color: Colors.black,
|
|
|
|
// // ),
|
|
|
|
// // ),
|
|
|
|
// Text1(
|
|
|
|
// title: widget.text!["name"],
|
|
|
|
// txtcolor: Colors.black,
|
|
|
|
// fontweight: FontWeight.bold,
|
|
|
|
// txtfont: 22.0),
|
|
|
|
// // Text(
|
|
|
|
// // "Cardiac Surgery",
|
|
|
|
// // style: TextStyle(
|
|
|
|
// // fontWeight: FontWeight.bold, fontSize: 14.0),
|
|
|
|
// // ),
|
|
|
|
// Text1(
|
|
|
|
// title: widget.text!["speciality"],
|
|
|
|
// txtcolor: Colors.black,
|
|
|
|
// fontweight: FontWeight.normal,
|
|
|
|
// txtfont: 18.0),
|
|
|
|
|
|
|
|
// // Text(
|
|
|
|
// // widget.text!["speciality"],
|
|
|
|
// // textScaleFactor: 1.0,
|
|
|
|
// // textAlign: TextAlign.start,
|
|
|
|
// // style: TextStyle(),
|
|
|
|
// // ),
|
|
|
|
|
|
|
|
// Row(
|
|
|
|
// children: [
|
|
|
|
// isonline
|
|
|
|
// ? const Icon(
|
|
|
|
// Icons.circle_rounded,
|
|
|
|
// color: Colors.green,
|
|
|
|
// )
|
|
|
|
// : const Icon(
|
|
|
|
// Icons.circle_rounded,
|
|
|
|
// color: Colors.red,
|
|
|
|
// ),
|
|
|
|
// const SizedBox(
|
|
|
|
// width: 5.0,
|
|
|
|
// ),
|
|
|
|
// Text(isonline ? "Online" : "Offline")
|
|
|
|
// ],
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// 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: widget.text!["addr"] ??
|
|
|
|
// "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: widget.text!["adrr"] ??
|
|
|
|
// "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: widget.text!["phone_no"].toString(),
|
|
|
|
// 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: widget.text!["phone_no"].toString(),
|
|
|
|
// 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,
|
|
|
|
// ),
|
|
|
|
// Text1(
|
|
|
|
// title: widget.text!["email"],
|
|
|
|
// txtcolor: Colors.black,
|
|
|
|
// fontweight: FontWeight.bold,
|
|
|
|
// txtfont: 14.0),
|
|
|
|
// ]),
|
|
|
|
// const SizedBox(
|
|
|
|
// height: 18.0,
|
|
|
|
// ),
|
|
|
|
// Visibility(
|
|
|
|
// visible: isonline!,
|
|
|
|
// child: Column(
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
// children: [
|
|
|
|
// // const Text(
|
|
|
|
// // "Profile Summarry",
|
|
|
|
// // style: TextStyle(
|
|
|
|
// // fontSize: 20.0, fontWeight: FontWeight.bold),
|
|
|
|
// // ),
|
|
|
|
// Text1(
|
|
|
|
// title: "Profile Summarry",
|
|
|
|
// txtcolor: Colors.black,
|
|
|
|
// fontweight: FontWeight.bold,
|
|
|
|
// txtfont: 20.0),
|
|
|
|
// SizedBox(
|
|
|
|
// height: 15.0,
|
|
|
|
// ),
|
|
|
|
// // Text(
|
|
|
|
// // widget.text!["summarry"],
|
|
|
|
// // textScaleFactor: 1.3,
|
|
|
|
// // style: TextStyle(
|
|
|
|
// // fontSize: 14.0,
|
|
|
|
// // fontWeight: FontWeight.normal),
|
|
|
|
// // ),
|
|
|
|
// Text1(
|
|
|
|
// title: widget.text!["summarry"],
|
|
|
|
// txtcolor: Colors.black,
|
|
|
|
// fontweight: FontWeight.bold,
|
|
|
|
// txtfont: 16.0),
|
|
|
|
// Padding(
|
|
|
|
// padding: EdgeInsets.all(0.0),
|
|
|
|
// //child: Card(
|
|
|
|
// // surfaceTintColor: Colors.white,
|
|
|
|
|
|
|
|
// // clipBehavior: Clip.antiAlias,
|
|
|
|
// // color: Colors.white,
|
|
|
|
// // elevation: 5, // adds a shadow effect
|
|
|
|
// // shape: RoundedRectangleBorder(
|
|
|
|
// // borderRadius: BorderRadius.circular(
|
|
|
|
// // 15.0), // adds rounded corners
|
|
|
|
// // ),
|
|
|
|
// child: Padding(
|
|
|
|
// padding: const EdgeInsets.all(0),
|
|
|
|
// child: Column(
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
// children: <Widget>[
|
|
|
|
// Card(
|
|
|
|
// surfaceTintColor: Colors.white,
|
|
|
|
// clipBehavior: Clip.antiAlias,
|
|
|
|
// color: Colors.white,
|
|
|
|
// elevation: 5,
|
|
|
|
// shape: RoundedRectangleBorder(
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// 15.0), // adds rounded corners
|
|
|
|
// ),
|
|
|
|
// child: Padding(
|
|
|
|
// padding: const EdgeInsets.all(18.0),
|
|
|
|
// child: Row(
|
|
|
|
// //mainAxisSize: MainAxisSize.min,
|
|
|
|
// children: [
|
|
|
|
// Text1(
|
|
|
|
// title: "Affiliations",
|
|
|
|
// txtcolor: Color.fromARGB(
|
|
|
|
// 255, 0, 71, 137),
|
|
|
|
// fontweight: FontWeight.bold,
|
|
|
|
// txtfont: 20.0),
|
|
|
|
// const SizedBox(
|
|
|
|
// height: 15.0,
|
|
|
|
// ),
|
|
|
|
// Text1(
|
|
|
|
// title: widget
|
|
|
|
// .text!["affiliations_count"]
|
|
|
|
// .toString(),
|
|
|
|
// txtfont: 18.0,
|
|
|
|
// txtcolor: Color.fromARGB(
|
|
|
|
// 255, 0, 71, 137),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// const SizedBox(
|
|
|
|
// height:
|
|
|
|
// 10), // adds spacing between the text and image
|
|
|
|
// Card(
|
|
|
|
// surfaceTintColor: Colors.white,
|
|
|
|
// clipBehavior: Clip.antiAlias,
|
|
|
|
// color: Colors.white,
|
|
|
|
// elevation: 5,
|
|
|
|
// shape: RoundedRectangleBorder(
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// 15.0), // adds rounded corners
|
|
|
|
// ),
|
|
|
|
// child: Padding(
|
|
|
|
// padding: const EdgeInsets.all(18.0),
|
|
|
|
// child: Row(
|
|
|
|
// mainAxisAlignment:
|
|
|
|
// MainAxisAlignment.start,
|
|
|
|
// // mainAxisSize: MainAxisSize.min,
|
|
|
|
// children: [
|
|
|
|
// Text1(
|
|
|
|
// title: "Events",
|
|
|
|
// txtcolor: Color.fromARGB(
|
|
|
|
// 255, 0, 71, 137),
|
|
|
|
// fontweight: FontWeight.bold,
|
|
|
|
// txtfont: 20.0),
|
|
|
|
// const SizedBox(
|
|
|
|
// height: 15.0,
|
|
|
|
// ),
|
|
|
|
// Text1(
|
|
|
|
// title: widget
|
|
|
|
// .text!["events_count"]
|
|
|
|
// .toString(),
|
|
|
|
// txtfont: 18.0,
|
|
|
|
// txtcolor: Color.fromARGB(
|
|
|
|
// 255, 0, 71, 137),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// const SizedBox(
|
|
|
|
// height:
|
|
|
|
// 10), // adds spacing between the image and button
|
|
|
|
// Card(
|
|
|
|
// surfaceTintColor: Colors.white,
|
|
|
|
// clipBehavior: Clip.antiAlias,
|
|
|
|
// color: Colors.white,
|
|
|
|
// elevation: 5,
|
|
|
|
// shape: RoundedRectangleBorder(
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// 15.0), // adds rounded corners
|
|
|
|
// ),
|
|
|
|
// child: Padding(
|
|
|
|
// padding: const EdgeInsets.all(18.0),
|
|
|
|
// child: Row(
|
|
|
|
// mainAxisAlignment:
|
|
|
|
// MainAxisAlignment.start,
|
|
|
|
// // mainAxisSize: MainAxisSize.min,
|
|
|
|
// children: [
|
|
|
|
// Text1(
|
|
|
|
// title: "Publications",
|
|
|
|
// txtcolor: Color.fromARGB(
|
|
|
|
// 255, 0, 71, 137),
|
|
|
|
// fontweight: FontWeight.bold,
|
|
|
|
// txtfont: 20.0),
|
|
|
|
// const SizedBox(
|
|
|
|
// height: 15.0,
|
|
|
|
// ),
|
|
|
|
// Text1(
|
|
|
|
// title: widget
|
|
|
|
// .text!["publications_count"]
|
|
|
|
// .toString(),
|
|
|
|
// txtfont: 18.0,
|
|
|
|
// txtcolor: Color.fromARGB(
|
|
|
|
// 255, 0, 71, 137),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// SizedBox(
|
|
|
|
// height: 10.0,
|
|
|
|
// ),
|
|
|
|
// Card(
|
|
|
|
// surfaceTintColor: Colors.white,
|
|
|
|
// clipBehavior: Clip.antiAlias,
|
|
|
|
// color: Colors.white,
|
|
|
|
// elevation: 5,
|
|
|
|
// shape: RoundedRectangleBorder(
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// 15.0), // adds rounded corners
|
|
|
|
// ),
|
|
|
|
// child: Padding(
|
|
|
|
// padding: const EdgeInsets.all(18.0),
|
|
|
|
// child: Row(
|
|
|
|
// mainAxisAlignment:
|
|
|
|
// MainAxisAlignment.start,
|
|
|
|
// // mainAxisSize: MainAxisSize.min,
|
|
|
|
// children: [
|
|
|
|
// Text1(
|
|
|
|
// title: "Trails",
|
|
|
|
// txtcolor: Color.fromARGB(
|
|
|
|
// 255, 0, 71, 137),
|
|
|
|
// fontweight: FontWeight.bold,
|
|
|
|
// txtfont: 20.0),
|
|
|
|
// const SizedBox(
|
|
|
|
// height: 15.0,
|
|
|
|
// ),
|
|
|
|
// Text1(
|
|
|
|
// title: widget
|
|
|
|
// .text!["publications_count"]
|
|
|
|
// .toString(),
|
|
|
|
// txtfont: 18.0,
|
|
|
|
// txtcolor: Color.fromARGB(
|
|
|
|
// 255, 0, 71, 137),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// SizedBox(
|
|
|
|
// height: 10.0,
|
|
|
|
// ),
|
|
|
|
// Card(
|
|
|
|
// surfaceTintColor: Colors.white,
|
|
|
|
// clipBehavior: Clip.antiAlias,
|
|
|
|
// color: Colors.white,
|
|
|
|
// elevation: 5,
|
|
|
|
// shape: RoundedRectangleBorder(
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// 15.0), // adds rounded corners
|
|
|
|
// ),
|
|
|
|
// child: Padding(
|
|
|
|
// padding: const EdgeInsets.all(18.0),
|
|
|
|
// child: Row(
|
|
|
|
// mainAxisAlignment:
|
|
|
|
// MainAxisAlignment.start,
|
|
|
|
// //mainAxisSize: MainAxisSize.min,
|
|
|
|
// children: [
|
|
|
|
// GestureDetector(
|
|
|
|
// onTap: () async {
|
|
|
|
// ///
|
|
|
|
// Navigator.push(
|
|
|
|
// context,
|
|
|
|
// MaterialPageRoute(
|
|
|
|
// builder: (BuildContext
|
|
|
|
// context) =>
|
|
|
|
// InteractionScreen(
|
|
|
|
// index: 0,
|
|
|
|
// form:
|
|
|
|
// "form3 demo")));
|
|
|
|
// },
|
|
|
|
// child: Text1(
|
|
|
|
// title: "Interaction Form",
|
|
|
|
// txtcolor: Color.fromARGB(
|
|
|
|
// 255, 0, 71, 137),
|
|
|
|
// fontweight: FontWeight.bold,
|
|
|
|
// txtfont: 20.0),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// // )
|
|
|
|
// ////////////////////////////////////////////////
|
|
|
|
// // child: Card(
|
|
|
|
// // surfaceTintColor: Colors.white,
|
|
|
|
|
|
|
|
// // clipBehavior: Clip.antiAlias,
|
|
|
|
// // color: Colors.white,
|
|
|
|
// // elevation: 5, // adds a shadow effect
|
|
|
|
// // shape: RoundedRectangleBorder(
|
|
|
|
// // borderRadius: BorderRadius.circular(
|
|
|
|
// // 15.0), // adds rounded corners
|
|
|
|
// // ),
|
|
|
|
// // child: Padding(
|
|
|
|
// // padding: const EdgeInsets.all(50),
|
|
|
|
// // child: Column(
|
|
|
|
// // crossAxisAlignment:
|
|
|
|
// // CrossAxisAlignment.start,
|
|
|
|
// // mainAxisSize: MainAxisSize.min,
|
|
|
|
// // children: <Widget>[
|
|
|
|
// // Row(
|
|
|
|
// // mainAxisSize: MainAxisSize.min,
|
|
|
|
// // children: [
|
|
|
|
// // Text1(
|
|
|
|
// // title: "Affiliations",
|
|
|
|
// // txtcolor: Color.fromARGB(
|
|
|
|
// // 255, 0, 71, 137),
|
|
|
|
// // fontweight: FontWeight.bold,
|
|
|
|
// // txtfont: 20.0),
|
|
|
|
// // const SizedBox(
|
|
|
|
// // height: 15.0,
|
|
|
|
// // ),
|
|
|
|
// // Text1(
|
|
|
|
// // title: widget
|
|
|
|
// // .text!["affiliations_count"]
|
|
|
|
// // .toString(),
|
|
|
|
// // txtfont: 18.0,
|
|
|
|
// // txtcolor:
|
|
|
|
// // Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // )
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // const SizedBox(
|
|
|
|
// // height:
|
|
|
|
// // 10), // adds spacing between the text and image
|
|
|
|
// // Row(
|
|
|
|
// // mainAxisAlignment:
|
|
|
|
// // MainAxisAlignment.start,
|
|
|
|
// // mainAxisSize: MainAxisSize.min,
|
|
|
|
// // children: [
|
|
|
|
// // Text1(
|
|
|
|
// // title: "Events",
|
|
|
|
// // txtcolor: Color.fromARGB(
|
|
|
|
// // 255, 0, 71, 137),
|
|
|
|
// // fontweight: FontWeight.bold,
|
|
|
|
// // txtfont: 20.0),
|
|
|
|
// // const SizedBox(
|
|
|
|
// // height: 15.0,
|
|
|
|
// // ),
|
|
|
|
// // Text1(
|
|
|
|
// // title: widget.text!["events_count"]
|
|
|
|
// // .toString(),
|
|
|
|
// // txtfont: 18.0,
|
|
|
|
// // txtcolor:
|
|
|
|
// // Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // )
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // const SizedBox(
|
|
|
|
// // height:
|
|
|
|
// // 10), // adds spacing between the image and button
|
|
|
|
// // Row(
|
|
|
|
// // mainAxisAlignment:
|
|
|
|
// // MainAxisAlignment.start,
|
|
|
|
// // mainAxisSize: MainAxisSize.min,
|
|
|
|
// // children: [
|
|
|
|
// // Text1(
|
|
|
|
// // title: "Publications",
|
|
|
|
// // txtcolor: Color.fromARGB(
|
|
|
|
// // 255, 0, 71, 137),
|
|
|
|
// // fontweight: FontWeight.bold,
|
|
|
|
// // txtfont: 20.0),
|
|
|
|
// // const SizedBox(
|
|
|
|
// // height: 15.0,
|
|
|
|
// // ),
|
|
|
|
// // Text1(
|
|
|
|
// // title: widget
|
|
|
|
// // .text!["publications_count"]
|
|
|
|
// // .toString(),
|
|
|
|
// // txtfont: 18.0,
|
|
|
|
// // txtcolor:
|
|
|
|
// // Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // )
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // SizedBox(
|
|
|
|
// // height: 10.0,
|
|
|
|
// // ),
|
|
|
|
// // Row(
|
|
|
|
// // mainAxisAlignment:
|
|
|
|
// // MainAxisAlignment.start,
|
|
|
|
// // mainAxisSize: MainAxisSize.min,
|
|
|
|
// // children: [
|
|
|
|
// // Text1(
|
|
|
|
// // title: "Trails",
|
|
|
|
// // txtcolor: Color.fromARGB(
|
|
|
|
// // 255, 0, 71, 137),
|
|
|
|
// // fontweight: FontWeight.bold,
|
|
|
|
// // txtfont: 20.0),
|
|
|
|
// // const SizedBox(
|
|
|
|
// // height: 15.0,
|
|
|
|
// // ),
|
|
|
|
// // Text1(
|
|
|
|
// // title: widget
|
|
|
|
// // .text!["publications_count"]
|
|
|
|
// // .toString(),
|
|
|
|
// // txtfont: 18.0,
|
|
|
|
// // txtcolor:
|
|
|
|
// // Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // )
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
|
|
|
|
// // SizedBox(
|
|
|
|
// // height: 10.0,
|
|
|
|
// // ),
|
|
|
|
// // Row(
|
|
|
|
// // mainAxisAlignment:
|
|
|
|
// // MainAxisAlignment.start,
|
|
|
|
// // mainAxisSize: MainAxisSize.min,
|
|
|
|
// // children: [
|
|
|
|
// // GestureDetector(
|
|
|
|
// // onTap: () async {
|
|
|
|
// // print("I am Interaction");
|
|
|
|
// // final ConfigDataProvider
|
|
|
|
// // configDataProvider =
|
|
|
|
// // ConfigDataProvider();
|
|
|
|
|
|
|
|
// // await configDataProvider
|
|
|
|
// // .initConfigUIData();
|
|
|
|
// // // Navigator.push(context, MaterialPageRoute(builder: (context)))=> InteractionScreen();
|
|
|
|
// // Navigator.push(
|
|
|
|
// // context,
|
|
|
|
// // MaterialPageRoute(
|
|
|
|
// // builder: (context) =>
|
|
|
|
// // InteractionListScreen()));
|
|
|
|
// // },
|
|
|
|
// // child: Text1(
|
|
|
|
// // title: "Interaction Form",
|
|
|
|
// // txtcolor: Color.fromARGB(
|
|
|
|
// // 255, 0, 71, 137),
|
|
|
|
// // fontweight: FontWeight.bold,
|
|
|
|
// // txtfont: 20.0),
|
|
|
|
// // ),
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // ),
|
|
|
|
// // ),
|
|
|
|
|
|
|
|
// //////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// // child: Card(
|
|
|
|
// // surfaceTintColor: Colors.white,
|
|
|
|
// // // margin: EdgeInsets.symmetric(
|
|
|
|
// // // horizontal: 15.0, vertical: 5.0),
|
|
|
|
// // clipBehavior: Clip.antiAlias,
|
|
|
|
// // color: Colors.red,
|
|
|
|
// // elevation: 5.0,
|
|
|
|
// // child: Column(
|
|
|
|
// // crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
// // mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
// // children: [
|
|
|
|
// // Row(
|
|
|
|
// // mainAxisAlignment:
|
|
|
|
// // MainAxisAlignment.center,
|
|
|
|
// // crossAxisAlignment:
|
|
|
|
// // CrossAxisAlignment.start,
|
|
|
|
// // children: [
|
|
|
|
// // Text1(
|
|
|
|
// // title: "Affiliations",
|
|
|
|
// // txtcolor:
|
|
|
|
// // Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // fontweight: FontWeight.bold,
|
|
|
|
// // txtfont: 20.0),
|
|
|
|
// // const SizedBox(
|
|
|
|
// // height: 15.0,
|
|
|
|
// // ),
|
|
|
|
// // Text1(
|
|
|
|
// // title: widget
|
|
|
|
// // .text!["affiliations_count"]
|
|
|
|
// // .toString(),
|
|
|
|
// // txtfont: 18.0,
|
|
|
|
// // txtcolor:
|
|
|
|
// // Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // )
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // SizedBox(
|
|
|
|
// // height: 10.0,
|
|
|
|
// // ),
|
|
|
|
// // Row(
|
|
|
|
// // mainAxisAlignment:
|
|
|
|
// // MainAxisAlignment.center,
|
|
|
|
// // crossAxisAlignment:
|
|
|
|
// // CrossAxisAlignment.start,
|
|
|
|
// // children: [
|
|
|
|
// // Text1(
|
|
|
|
// // title: "Events",
|
|
|
|
// // txtcolor:
|
|
|
|
// // Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // fontweight: FontWeight.bold,
|
|
|
|
// // txtfont: 20.0),
|
|
|
|
// // const SizedBox(
|
|
|
|
// // height: 15.0,
|
|
|
|
// // ),
|
|
|
|
// // Text1(
|
|
|
|
// // title: widget.text!["events_count"]
|
|
|
|
// // .toString(),
|
|
|
|
// // txtfont: 18.0,
|
|
|
|
// // txtcolor:
|
|
|
|
// // Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // )
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // SizedBox(
|
|
|
|
// // height: 10.0,
|
|
|
|
// // ),
|
|
|
|
// // Row(
|
|
|
|
// // mainAxisAlignment:
|
|
|
|
// // MainAxisAlignment.center,
|
|
|
|
// // children: [
|
|
|
|
// // Text1(
|
|
|
|
// // title: "Publications",
|
|
|
|
// // txtcolor:
|
|
|
|
// // Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // fontweight: FontWeight.bold,
|
|
|
|
// // txtfont: 20.0),
|
|
|
|
// // const SizedBox(
|
|
|
|
// // height: 15.0,
|
|
|
|
// // ),
|
|
|
|
// // Text1(
|
|
|
|
// // title: widget
|
|
|
|
// // .text!["publications_count"]
|
|
|
|
// // .toString(),
|
|
|
|
// // txtfont: 18.0,
|
|
|
|
// // txtcolor:
|
|
|
|
// // Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // )
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // SizedBox(
|
|
|
|
// // height: 10.0,
|
|
|
|
// // ),
|
|
|
|
// // Row(
|
|
|
|
// // mainAxisAlignment:
|
|
|
|
// // MainAxisAlignment.center,
|
|
|
|
// // children: [
|
|
|
|
// // Text1(
|
|
|
|
// // title: "Trails",
|
|
|
|
// // txtcolor:
|
|
|
|
// // Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // fontweight: FontWeight.bold,
|
|
|
|
// // txtfont: 20.0),
|
|
|
|
// // const SizedBox(
|
|
|
|
// // height: 15.0,
|
|
|
|
// // ),
|
|
|
|
// // Text1(
|
|
|
|
// // title: widget
|
|
|
|
// // .text!["publications_count"]
|
|
|
|
// // .toString(),
|
|
|
|
// // txtfont: 18.0,
|
|
|
|
// // txtcolor:
|
|
|
|
// // Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // )
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // ),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
2024-06-27 08:38:43 +00:00
|
|
|
|
2024-06-28 08:14:42 +00:00
|
|
|
// // Padding(
|
|
|
|
// // padding: EdgeInsets.only(bottom: 18.0),
|
|
|
|
// // child: Card(
|
|
|
|
// // 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: widget.text!["affiliations_count"]
|
|
|
|
// // .toString(),
|
|
|
|
// // txtfont: 13.0,
|
|
|
|
// // txtcolor: Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // )
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // ),
|
|
|
|
// // Expanded(
|
|
|
|
// // child: Column(
|
|
|
|
// // children: <Widget>[
|
|
|
|
// // 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:
|
|
|
|
// // widget.text!["events_count"].toString(),
|
|
|
|
// // 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: widget.text!["publications_count"]
|
|
|
|
// // .toString(),
|
|
|
|
// // 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),
|
|
|
|
// // )
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // ),
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // ),
|
|
|
|
// // ),
|
|
|
|
// // )
|
|
|
|
|
|
|
|
// // // 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: widget.text!["affiliations_count"]
|
|
|
|
// // .toString(),
|
|
|
|
// // txtfont: 13.0,
|
|
|
|
// // txtcolor: Color.fromARGB(255, 0, 71, 137),
|
|
|
|
// // )
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // ),
|
|
|
|
// // Expanded(
|
|
|
|
// // child: Column(
|
|
|
|
// // children: <Widget>[
|
|
|
|
// // 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:
|
|
|
|
// // widget.text!["events_count"].toString(),
|
|
|
|
// // 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: widget.text!["publications_count"]
|
|
|
|
// // .toString(),
|
|
|
|
// // 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),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// );
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////
|
2024-05-20 10:29:02 +00:00
|
|
|
import 'package:discover_module/custom_widget/text.dart';
|
2024-06-27 08:38:43 +00:00
|
|
|
import 'package:discover_module/hive_fun.dart';
|
2024-07-05 08:48:29 +00:00
|
|
|
import 'package:discover_module/provider_class/affiliationsprovider.dart';
|
|
|
|
import 'package:discover_module/provider_class/events_provider.dart';
|
|
|
|
import 'package:discover_module/provider_class/publications_provider.dart';
|
|
|
|
import 'package:discover_module/ui_screen/affiliation_data.dart';
|
|
|
|
import 'package:discover_module/ui_screen/events_data.dart';
|
2024-06-27 08:38:43 +00:00
|
|
|
import 'package:discover_module/ui_screen/interactionform/NewtworkConnectivity.dart';
|
|
|
|
import 'package:discover_module/ui_screen/interactionform/configprovider.dart';
|
2024-07-05 08:48:29 +00:00
|
|
|
import 'package:discover_module/ui_screen/interactionform/edit_interaction_screen.dart';
|
2024-06-27 08:38:43 +00:00
|
|
|
import 'package:discover_module/ui_screen/interactionform/interaction_screen.dart';
|
|
|
|
import 'package:discover_module/ui_screen/interactionform/interactionlistscreen.dart';
|
2024-06-28 08:14:42 +00:00
|
|
|
import 'package:discover_module/ui_screen/interactionform/interactionprovider.dart';
|
2024-07-05 08:48:29 +00:00
|
|
|
import 'package:discover_module/ui_screen/interactionform/model/save_interaction.dart';
|
2024-06-28 08:14:42 +00:00
|
|
|
import 'package:discover_module/ui_screen/interactionform/view_forms_list.dart';
|
2024-07-05 08:48:29 +00:00
|
|
|
import 'package:discover_module/ui_screen/interactionform/view_interaction_screen.dart';
|
|
|
|
import 'package:discover_module/ui_screen/interactionform/viewinteractionprovider.dart';
|
2024-05-20 10:29:02 +00:00
|
|
|
import 'package:discover_module/ui_screen/newformlist.dart';
|
2024-07-05 08:48:29 +00:00
|
|
|
import 'package:discover_module/ui_screen/publication_data.dart';
|
|
|
|
import 'package:expandable/expandable.dart';
|
2024-05-20 10:29:02 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
2024-06-27 08:38:43 +00:00
|
|
|
import 'package:flutter/rendering.dart';
|
2024-05-20 10:29:02 +00:00
|
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
import 'package:flutter_profile_picture/flutter_profile_picture.dart';
|
2024-06-28 08:14:42 +00:00
|
|
|
import 'package:provider/provider.dart';
|
2024-05-20 10:29:02 +00:00
|
|
|
|
|
|
|
class Profile extends StatefulWidget {
|
2024-06-28 08:14:42 +00:00
|
|
|
const Profile({Key? key, required this.text}) : super(key: key);
|
|
|
|
final Map<dynamic, dynamic> text;
|
2024-06-27 08:38:43 +00:00
|
|
|
|
2024-05-20 10:29:02 +00:00
|
|
|
@override
|
|
|
|
State<Profile> createState() => _ProfileState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _ProfileState extends State<Profile> {
|
2024-06-27 08:38:43 +00:00
|
|
|
bool isonline = false;
|
2024-07-05 08:48:29 +00:00
|
|
|
List affiliation_data = [];
|
|
|
|
List publication_data = [];
|
|
|
|
List event_data = [];
|
|
|
|
|
|
|
|
List<SaveInteraction> viewformData = [];
|
|
|
|
|
|
|
|
bool _isExpanded = false;
|
2024-06-27 08:38:43 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
// TODO: implement initState
|
|
|
|
super.initState();
|
|
|
|
print("pooja123");
|
|
|
|
|
2024-07-05 08:48:29 +00:00
|
|
|
getaffiliations();
|
|
|
|
|
2024-06-27 08:38:43 +00:00
|
|
|
getuserdetails();
|
|
|
|
print("Widget_isssIndex_iss ${widget.text}");
|
|
|
|
print("Widget_isssIndex_iss ${widget.text!["id"]},${widget.text!["name"]}");
|
|
|
|
}
|
|
|
|
|
2024-07-05 08:48:29 +00:00
|
|
|
getaffiliations() async {
|
|
|
|
var affiliations =
|
|
|
|
Provider.of<AffiliationsProvider>(context, listen: false);
|
|
|
|
|
|
|
|
await affiliations.getAffiliationsdata();
|
|
|
|
final affilist = affiliations.adddta;
|
|
|
|
|
|
|
|
var publication = Provider.of<PublicatioProvider>(context, listen: false);
|
|
|
|
|
|
|
|
await publication.publicatininfo();
|
|
|
|
final publist = publication.publicationlist;
|
|
|
|
|
|
|
|
var events = Provider.of<EventProvider>(context, listen: false);
|
|
|
|
await events.geteventdata();
|
|
|
|
final eventlist = events.EventsList;
|
|
|
|
|
|
|
|
var form = Provider.of<ViewInteractionProvider>(context, listen: false);
|
|
|
|
// form.savedList;
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
affiliation_data = affilist;
|
|
|
|
publication_data = publist;
|
|
|
|
event_data = eventlist;
|
|
|
|
viewformData = form.savedList;
|
|
|
|
});
|
|
|
|
|
|
|
|
print("Affiliations_data_is: $affilist");
|
|
|
|
}
|
|
|
|
|
2024-06-27 08:38:43 +00:00
|
|
|
getuserdetails() async {
|
|
|
|
// HiveFunctions.getindexUser(widget.text);
|
|
|
|
|
|
|
|
NetworkConnectivity networkConnectivity = NetworkConnectivity();
|
|
|
|
bool isonline1 = await networkConnectivity.isInternetAvailable();
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
print("Profile_isOnline: $isonline1");
|
|
|
|
isonline = isonline1;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-05-20 10:29:02 +00:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2024-06-10 11:11:00 +00:00
|
|
|
return SafeArea(
|
|
|
|
child: Scaffold(
|
|
|
|
appBar: AppBar(
|
|
|
|
title: const Text('Profile'),
|
2024-06-27 08:38:43 +00:00
|
|
|
// actions: const [
|
|
|
|
// Padding(
|
|
|
|
// padding: const EdgeInsets.all(8.0),
|
|
|
|
// child: Text("View Similar"),
|
|
|
|
// ),
|
|
|
|
// Padding(
|
|
|
|
// padding: const EdgeInsets.all(8.0),
|
|
|
|
// child: Text("Request Profile"),
|
|
|
|
// )
|
|
|
|
// ],
|
2024-06-10 11:11:00 +00:00
|
|
|
),
|
|
|
|
body: ListView(
|
|
|
|
children: [
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: <Widget>[
|
|
|
|
Row(
|
|
|
|
children: [
|
2024-06-27 08:38:43 +00:00
|
|
|
Padding(
|
2024-06-10 11:11:00 +00:00
|
|
|
padding: EdgeInsets.all(10.0),
|
|
|
|
child: ProfilePicture(
|
2024-06-27 08:38:43 +00:00
|
|
|
name: widget.text!["name"],
|
2024-06-10 11:11:00 +00:00
|
|
|
radius: 31,
|
|
|
|
fontsize: 21,
|
|
|
|
),
|
2024-05-20 10:29:02 +00:00
|
|
|
),
|
2024-06-10 11:11:00 +00:00
|
|
|
Column(
|
2024-06-27 08:38:43 +00:00
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
2024-06-10 11:11:00 +00:00
|
|
|
children: [
|
|
|
|
// Text(
|
|
|
|
// "Gerosa, Gino",
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: 22.0,
|
|
|
|
// color: Colors.black,
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
Text1(
|
2024-06-27 08:38:43 +00:00
|
|
|
title: widget.text!["name"],
|
2024-06-10 11:11:00 +00:00
|
|
|
txtcolor: Colors.black,
|
2024-06-27 08:38:43 +00:00
|
|
|
fontweight: FontWeight.bold,
|
2024-06-10 11:11:00 +00:00
|
|
|
txtfont: 22.0),
|
|
|
|
// Text(
|
|
|
|
// "Cardiac Surgery",
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontWeight: FontWeight.bold, fontSize: 14.0),
|
|
|
|
// ),
|
|
|
|
Text1(
|
2024-06-27 08:38:43 +00:00
|
|
|
title: widget.text!["speciality"],
|
2024-06-10 11:11:00 +00:00
|
|
|
txtcolor: Colors.black,
|
2024-06-27 08:38:43 +00:00
|
|
|
fontweight: FontWeight.normal,
|
|
|
|
txtfont: 18.0),
|
|
|
|
|
|
|
|
// Text(
|
|
|
|
// widget.text!["speciality"],
|
|
|
|
// textScaleFactor: 1.0,
|
|
|
|
// textAlign: TextAlign.start,
|
|
|
|
// style: TextStyle(),
|
|
|
|
// ),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
isonline
|
|
|
|
? const Icon(
|
|
|
|
Icons.circle_rounded,
|
|
|
|
color: Colors.green,
|
|
|
|
)
|
|
|
|
: const Icon(
|
|
|
|
Icons.circle_rounded,
|
|
|
|
color: Colors.red,
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
width: 5.0,
|
|
|
|
),
|
|
|
|
Text(isonline ? "Online" : "Offline")
|
|
|
|
],
|
|
|
|
)
|
2024-06-10 11:11:00 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
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(
|
2024-06-27 08:38:43 +00:00
|
|
|
title: widget.text!["addr"] ??
|
|
|
|
"Azienda Ospedaliera di Padova",
|
2024-05-20 10:29:02 +00:00
|
|
|
txtcolor: Colors.black,
|
2024-06-10 11:11:00 +00:00
|
|
|
txtfont: 14.0,
|
2024-05-20 10:29:02 +00:00
|
|
|
fontweight: FontWeight.bold,
|
2024-06-10 11:11:00 +00:00
|
|
|
)),
|
|
|
|
]),
|
2024-05-20 10:29:02 +00:00
|
|
|
const SizedBox(
|
2024-06-10 11:11:00 +00:00
|
|
|
height: 8.0,
|
2024-05-20 10:29:02 +00:00
|
|
|
),
|
2024-06-10 11:11:00 +00:00
|
|
|
Row(children: [
|
|
|
|
const Icon(
|
|
|
|
Icons.location_pin,
|
|
|
|
color: Color.fromARGB(255, 0, 71, 132),
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
width: 3.0,
|
|
|
|
),
|
|
|
|
Expanded(
|
2024-05-20 10:29:02 +00:00
|
|
|
// child: Text(
|
2024-06-10 11:11:00 +00:00
|
|
|
// "Via Giustiniani, 2, Padova, Veneto 35128, Italy",
|
2024-05-20 10:29:02 +00:00
|
|
|
// style: TextStyle(
|
|
|
|
// fontWeight: FontWeight.bold, fontSize: 14.0),
|
|
|
|
// ),
|
|
|
|
child: Text1(
|
2024-06-27 08:38:43 +00:00
|
|
|
title: widget.text!["adrr"] ??
|
2024-06-10 11:11:00 +00:00
|
|
|
"Via Giustiniani, 2, Padova, Veneto 35128, Italy",
|
|
|
|
txtcolor: Colors.black,
|
|
|
|
fontweight: FontWeight.bold,
|
|
|
|
txtfont: 14.0),
|
|
|
|
),
|
|
|
|
]),
|
2024-05-20 10:29:02 +00:00
|
|
|
const SizedBox(
|
2024-06-10 11:11:00 +00:00
|
|
|
height: 8.0,
|
2024-05-20 10:29:02 +00:00
|
|
|
),
|
2024-06-10 11:11:00 +00:00
|
|
|
Row(children: [
|
|
|
|
const Icon(
|
|
|
|
Icons.phone,
|
|
|
|
color: Color.fromARGB(255, 0, 71, 132),
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
width: 3.0,
|
|
|
|
),
|
|
|
|
// Text(
|
|
|
|
// "+390498212410 X 12",
|
2024-05-20 10:29:02 +00:00
|
|
|
// style: TextStyle(
|
|
|
|
// fontWeight: FontWeight.bold, fontSize: 14.0),
|
|
|
|
// ),
|
2024-06-10 11:11:00 +00:00
|
|
|
Text1(
|
2024-06-27 08:38:43 +00:00
|
|
|
title: widget.text!["phone_no"].toString(),
|
2024-05-20 10:29:02 +00:00
|
|
|
txtcolor: Colors.black,
|
|
|
|
fontweight: FontWeight.bold,
|
|
|
|
txtfont: 14.0),
|
2024-06-10 11:11:00 +00:00
|
|
|
]),
|
2024-05-20 10:29:02 +00:00
|
|
|
const SizedBox(
|
2024-06-10 11:11:00 +00:00
|
|
|
height: 8.0,
|
2024-05-20 10:29:02 +00:00
|
|
|
),
|
2024-06-10 11:11:00 +00:00
|
|
|
Row(children: [
|
|
|
|
const Icon(
|
|
|
|
Icons.call,
|
|
|
|
color: Color.fromARGB(255, 0, 71, 132),
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
width: 3.0,
|
|
|
|
),
|
|
|
|
Text1(
|
2024-06-27 08:38:43 +00:00
|
|
|
title: widget.text!["phone_no"].toString(),
|
2024-06-10 11:11:00 +00:00
|
|
|
txtcolor: Colors.black,
|
|
|
|
fontweight: FontWeight.bold,
|
|
|
|
txtfont: 14.0),
|
|
|
|
]),
|
2024-05-20 10:29:02 +00:00
|
|
|
const SizedBox(
|
2024-06-10 11:11:00 +00:00
|
|
|
height: 8.0,
|
2024-05-20 10:29:02 +00:00
|
|
|
),
|
2024-06-10 11:11:00 +00:00
|
|
|
Row(children: [
|
|
|
|
const Icon(
|
|
|
|
Icons.email,
|
|
|
|
color: Color.fromARGB(255, 0, 71, 132),
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
width: 3.0,
|
|
|
|
),
|
|
|
|
Text1(
|
2024-06-27 08:38:43 +00:00
|
|
|
title: widget.text!["email"],
|
2024-06-10 11:11:00 +00:00
|
|
|
txtcolor: Colors.black,
|
|
|
|
fontweight: FontWeight.bold,
|
|
|
|
txtfont: 14.0),
|
|
|
|
]),
|
2024-06-27 08:38:43 +00:00
|
|
|
const SizedBox(
|
|
|
|
height: 18.0,
|
|
|
|
),
|
2024-06-28 08:14:42 +00:00
|
|
|
isonline
|
|
|
|
? Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
// const Text(
|
|
|
|
// "Profile Summarry",
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: 20.0, fontWeight: FontWeight.bold),
|
|
|
|
// ),
|
|
|
|
Text1(
|
|
|
|
title: "Profile Summarry",
|
|
|
|
txtcolor: Colors.black,
|
|
|
|
fontweight: FontWeight.bold,
|
|
|
|
txtfont: 20.0),
|
2024-07-05 08:48:29 +00:00
|
|
|
const SizedBox(
|
2024-06-28 08:14:42 +00:00
|
|
|
height: 15.0,
|
|
|
|
),
|
|
|
|
// Text(
|
|
|
|
// widget.text!["summarry"],
|
|
|
|
// textScaleFactor: 1.3,
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: 14.0,
|
|
|
|
// fontWeight: FontWeight.normal),
|
|
|
|
// ),
|
|
|
|
Text1(
|
|
|
|
title: widget.text!["summarry"],
|
|
|
|
txtcolor: Colors.black,
|
|
|
|
fontweight: FontWeight.bold,
|
|
|
|
txtfont: 16.0),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.all(0.0),
|
2024-07-05 08:48:29 +00:00
|
|
|
|
2024-06-28 08:14:42 +00:00
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.all(0),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: <Widget>[
|
2024-07-05 08:48:29 +00:00
|
|
|
// const SizedBox(height: 10),
|
|
|
|
Flexible(
|
|
|
|
flex: 1,
|
|
|
|
child: Card(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(0.0),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
2024-07-05 08:48:29 +00:00
|
|
|
color: const Color.fromARGB(
|
|
|
|
255, 0, 71, 137),
|
|
|
|
child: ExpansionTile(
|
|
|
|
maintainState: true,
|
|
|
|
onExpansionChanged:
|
|
|
|
(bool expanded) {
|
|
|
|
setState(() {
|
|
|
|
_isExpanded = expanded;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
backgroundColor:
|
|
|
|
const Color.fromARGB(
|
2024-06-28 08:14:42 +00:00
|
|
|
255, 0, 71, 137),
|
2024-07-05 08:48:29 +00:00
|
|
|
trailing: Icon(
|
|
|
|
_isExpanded
|
|
|
|
? Icons
|
|
|
|
.keyboard_arrow_up
|
|
|
|
: Icons
|
|
|
|
.keyboard_arrow_down,
|
|
|
|
color: Colors.white),
|
|
|
|
// collapsedBackgroundColor: Color(0xFF2b9af3),
|
|
|
|
initiallyExpanded: true,
|
|
|
|
title: Padding(
|
|
|
|
padding:
|
|
|
|
const EdgeInsets.all(8.0),
|
|
|
|
child: Row(
|
|
|
|
//mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
Text1(
|
|
|
|
title: "Affiliations",
|
|
|
|
txtcolor:
|
|
|
|
Colors.white,
|
|
|
|
fontweight:
|
|
|
|
FontWeight.normal,
|
|
|
|
txtfont: 20.0),
|
|
|
|
const SizedBox(
|
|
|
|
width: 8.0,
|
|
|
|
),
|
|
|
|
// Text1(
|
|
|
|
// title: widget
|
|
|
|
// .text![
|
|
|
|
// "affiliations_count"]
|
|
|
|
// .toString(),
|
|
|
|
// txtfont: 18.0,
|
|
|
|
// txtcolor:
|
|
|
|
// const Color
|
|
|
|
// .fromARGB(
|
|
|
|
// 255,
|
|
|
|
// 60,
|
|
|
|
// 82,
|
|
|
|
// 102),
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
2024-07-05 08:48:29 +00:00
|
|
|
children: [
|
|
|
|
SingleChildScrollView(
|
|
|
|
scrollDirection:
|
|
|
|
Axis.horizontal,
|
|
|
|
child: Container(
|
|
|
|
width:
|
|
|
|
MediaQuery.of(context)
|
|
|
|
.size
|
|
|
|
.width,
|
|
|
|
color: Colors.white,
|
|
|
|
child: DataTable(
|
|
|
|
columns: const [
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'sl no'))),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Organization Name'),
|
|
|
|
)),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Department'))),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Role'))),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Time Frame'))),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Org Type'))),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Eng Type'))),
|
|
|
|
// Add more columns as needed
|
|
|
|
],
|
|
|
|
rows: List.generate(
|
|
|
|
affiliation_data
|
|
|
|
.length,
|
|
|
|
(index) => DataRow(
|
|
|
|
cells: [
|
|
|
|
DataCell(Text(
|
|
|
|
affiliation_data[
|
|
|
|
index]
|
|
|
|
['id']
|
|
|
|
.toString())),
|
|
|
|
DataCell(Text(affiliation_data[
|
|
|
|
index]
|
|
|
|
[
|
|
|
|
'org_name']
|
|
|
|
.toString())),
|
|
|
|
DataCell(Text(
|
|
|
|
affiliation_data[
|
|
|
|
index]
|
|
|
|
[
|
|
|
|
'dept']
|
|
|
|
.toString())),
|
|
|
|
DataCell(Text(
|
|
|
|
affiliation_data[
|
|
|
|
index]
|
|
|
|
[
|
|
|
|
'role']
|
|
|
|
.toString())),
|
|
|
|
DataCell(Text(affiliation_data[
|
|
|
|
index]
|
|
|
|
[
|
|
|
|
'time_frame']
|
|
|
|
.toString())),
|
|
|
|
DataCell(Text(affiliation_data[
|
|
|
|
index]
|
|
|
|
[
|
|
|
|
'org_type']
|
|
|
|
.toString())),
|
|
|
|
DataCell(Text(affiliation_data[
|
|
|
|
index]
|
|
|
|
[
|
|
|
|
'emg_type']
|
|
|
|
.toString())),
|
|
|
|
// Add more DataCells as needed
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
color: Colors.white,
|
|
|
|
child: Align(
|
|
|
|
alignment:
|
|
|
|
Alignment.center,
|
|
|
|
child: Padding(
|
|
|
|
padding:
|
|
|
|
const EdgeInsets
|
|
|
|
.all(8.0),
|
|
|
|
child: OutlinedButton(
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (_) =>
|
|
|
|
AffiliationsData()));
|
|
|
|
},
|
|
|
|
child:
|
|
|
|
Text('Show More'),
|
|
|
|
style: OutlinedButton
|
|
|
|
.styleFrom(
|
|
|
|
shape:
|
|
|
|
RoundedRectangleBorder(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius
|
|
|
|
.circular(
|
|
|
|
12),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
]),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
|
|
|
),
|
2024-07-05 08:48:29 +00:00
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
height: 10.0,
|
|
|
|
),
|
|
|
|
|
|
|
|
Flexible(
|
|
|
|
flex: 1,
|
|
|
|
// height:
|
|
|
|
// 200, // Set a fixed height or use constraints as needed
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
child: Card(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(0.0),
|
|
|
|
),
|
|
|
|
color: const Color.fromARGB(
|
|
|
|
255, 0, 71, 137),
|
|
|
|
child: ExpansionTile(
|
|
|
|
maintainState: true,
|
|
|
|
// backgroundColor: Colors.white,
|
|
|
|
// collapsedBackgroundColor: Color(0xFF2b9af3),
|
|
|
|
onExpansionChanged:
|
|
|
|
(bool expanded) {
|
|
|
|
setState(() {
|
|
|
|
_isExpanded = expanded;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
backgroundColor:
|
|
|
|
const Color.fromARGB(
|
|
|
|
255, 0, 71, 137),
|
|
|
|
trailing: Icon(
|
|
|
|
_isExpanded
|
|
|
|
? Icons
|
|
|
|
.keyboard_arrow_up
|
|
|
|
: Icons
|
|
|
|
.keyboard_arrow_down,
|
|
|
|
color: Colors.white),
|
|
|
|
initiallyExpanded: true,
|
|
|
|
title: Padding(
|
|
|
|
padding:
|
|
|
|
const EdgeInsets.all(
|
|
|
|
8.0),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment
|
|
|
|
.start,
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
Text1(
|
|
|
|
title:
|
|
|
|
"Publications",
|
|
|
|
txtcolor:
|
|
|
|
Colors.white,
|
|
|
|
fontweight:
|
|
|
|
FontWeight
|
|
|
|
.normal,
|
|
|
|
txtfont: 20.0),
|
|
|
|
const SizedBox(
|
|
|
|
width: 8.0,
|
|
|
|
),
|
|
|
|
// Text1(
|
|
|
|
// title: widget
|
|
|
|
// .text![
|
|
|
|
// "publications_count"]
|
|
|
|
// .toString(),
|
|
|
|
// txtfont: 18.0,
|
|
|
|
// txtcolor: Color
|
|
|
|
// .fromARGB(
|
|
|
|
// 255,
|
|
|
|
// 0,
|
|
|
|
// 71,
|
|
|
|
// 137),
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
children: [
|
|
|
|
SingleChildScrollView(
|
|
|
|
scrollDirection:
|
|
|
|
Axis.horizontal,
|
|
|
|
child: Container(
|
|
|
|
width: MediaQuery.of(
|
|
|
|
context)
|
|
|
|
.size
|
|
|
|
.width,
|
|
|
|
color: Colors.white,
|
|
|
|
child: DataTable(
|
|
|
|
columns: const [
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'sl no'))),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Artical Title',
|
|
|
|
softWrap:
|
|
|
|
true),
|
|
|
|
)),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Journal Name',
|
|
|
|
softWrap: true,
|
|
|
|
))),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Date'))),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Authors'))),
|
|
|
|
|
|
|
|
// Add more columns as needed
|
|
|
|
],
|
|
|
|
rows: List.generate(
|
|
|
|
publication_data
|
|
|
|
.length,
|
|
|
|
(index) => DataRow(
|
|
|
|
cells: [
|
|
|
|
DataCell(Text(
|
|
|
|
publication_data[index]
|
|
|
|
[
|
|
|
|
'id']
|
|
|
|
.toString(),
|
|
|
|
softWrap:
|
|
|
|
true)),
|
|
|
|
DataCell(Text(
|
|
|
|
publication_data[index]
|
|
|
|
[
|
|
|
|
'artical_title']
|
|
|
|
.toString(),
|
|
|
|
softWrap:
|
|
|
|
true)),
|
|
|
|
DataCell(Text(
|
|
|
|
publication_data[index]
|
|
|
|
[
|
|
|
|
'journal_name']
|
|
|
|
.toString(),
|
|
|
|
softWrap:
|
|
|
|
true)),
|
|
|
|
DataCell(Text(
|
|
|
|
publication_data[index]
|
|
|
|
[
|
|
|
|
'date']
|
|
|
|
.toString(),
|
|
|
|
softWrap:
|
|
|
|
true)),
|
|
|
|
DataCell(Text(
|
|
|
|
publication_data[index]
|
|
|
|
[
|
|
|
|
'author']
|
|
|
|
.toString(),
|
|
|
|
softWrap:
|
|
|
|
true)),
|
|
|
|
|
|
|
|
// Add more DataCells as needed
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
color: Colors.white,
|
|
|
|
child: Align(
|
|
|
|
alignment:
|
|
|
|
Alignment.center,
|
|
|
|
child: Padding(
|
|
|
|
padding:
|
|
|
|
const EdgeInsets
|
|
|
|
.all(8.0),
|
|
|
|
child: OutlinedButton(
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder:
|
|
|
|
(_) =>
|
|
|
|
PublicationsData()));
|
|
|
|
},
|
|
|
|
child: Text(
|
|
|
|
'Show More'),
|
|
|
|
style:
|
|
|
|
OutlinedButton
|
|
|
|
.styleFrom(
|
|
|
|
shape:
|
|
|
|
RoundedRectangleBorder(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius
|
|
|
|
.circular(
|
|
|
|
12),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
]),
|
|
|
|
),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
2024-07-05 08:48:29 +00:00
|
|
|
), // adds spacing between the text and image
|
|
|
|
|
|
|
|
const SizedBox(height: 10),
|
|
|
|
|
|
|
|
Flexible(
|
|
|
|
flex: 1,
|
|
|
|
// height:
|
|
|
|
// 200, // Set a fixed height or use constraints as needed
|
|
|
|
|
|
|
|
child: Card(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(0.0),
|
|
|
|
),
|
|
|
|
color: const Color.fromARGB(
|
|
|
|
255, 0, 71, 137),
|
|
|
|
child: ExpansionTile(
|
|
|
|
maintainState: true,
|
|
|
|
onExpansionChanged:
|
|
|
|
(bool expanded) {
|
|
|
|
setState(() {
|
|
|
|
_isExpanded = expanded;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
backgroundColor:
|
|
|
|
const Color.fromARGB(
|
2024-06-28 08:14:42 +00:00
|
|
|
255, 0, 71, 137),
|
2024-07-05 08:48:29 +00:00
|
|
|
trailing: Icon(
|
|
|
|
_isExpanded
|
|
|
|
? Icons
|
|
|
|
.keyboard_arrow_up
|
|
|
|
: Icons
|
|
|
|
.keyboard_arrow_down,
|
|
|
|
color: Colors.white),
|
|
|
|
// backgroundColor: Colors.white,
|
|
|
|
// collapsedBackgroundColor: Color(0xFF2b9af3),
|
|
|
|
initiallyExpanded: true,
|
|
|
|
title: Padding(
|
|
|
|
padding:
|
|
|
|
const EdgeInsets.all(8.0),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
Text1(
|
|
|
|
title: "Events",
|
|
|
|
txtcolor:
|
|
|
|
Colors.white,
|
|
|
|
fontweight:
|
|
|
|
FontWeight.normal,
|
|
|
|
txtfont: 20.0),
|
|
|
|
const SizedBox(
|
|
|
|
width: 8.0,
|
|
|
|
),
|
|
|
|
// Text1(
|
|
|
|
// title: widget
|
|
|
|
// .text![
|
|
|
|
// "events_count"]
|
|
|
|
// .toString(),
|
|
|
|
// txtfont: 18.0,
|
|
|
|
// txtcolor: Color
|
|
|
|
// .fromARGB(
|
|
|
|
// 255,
|
|
|
|
// 0,
|
|
|
|
// 71,
|
|
|
|
// 137),
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
2024-07-05 08:48:29 +00:00
|
|
|
children: [
|
|
|
|
SingleChildScrollView(
|
|
|
|
scrollDirection:
|
|
|
|
Axis.horizontal,
|
|
|
|
child: Container(
|
|
|
|
width:
|
|
|
|
MediaQuery.of(context)
|
|
|
|
.size
|
|
|
|
.width,
|
|
|
|
color: Colors.white,
|
|
|
|
child: DataTable(
|
|
|
|
columns: const [
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'sl no',
|
|
|
|
softWrap:
|
|
|
|
true))),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Event Name',
|
|
|
|
softWrap: true),
|
|
|
|
)),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Session Type',
|
|
|
|
softWrap:
|
|
|
|
true))),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Topic',
|
|
|
|
softWrap:
|
|
|
|
true))),
|
|
|
|
DataColumn(
|
|
|
|
label: Expanded(
|
|
|
|
child: Text(
|
|
|
|
'Role',
|
|
|
|
softWrap:
|
|
|
|
true))),
|
|
|
|
|
|
|
|
// Add more columns as needed
|
|
|
|
],
|
|
|
|
rows: List.generate(
|
|
|
|
event_data.length,
|
|
|
|
(index) => DataRow(
|
|
|
|
cells: [
|
|
|
|
DataCell(Text(
|
|
|
|
event_data[index]
|
|
|
|
['id']
|
|
|
|
.toString(),
|
|
|
|
softWrap:
|
|
|
|
true)),
|
|
|
|
DataCell(Text(
|
|
|
|
event_data[index]
|
|
|
|
[
|
|
|
|
'event_name']
|
|
|
|
.toString(),
|
|
|
|
softWrap:
|
|
|
|
true)),
|
|
|
|
DataCell(Text(
|
|
|
|
event_data[index]
|
|
|
|
[
|
|
|
|
'session_type']
|
|
|
|
.toString(),
|
|
|
|
softWrap:
|
|
|
|
true)),
|
|
|
|
DataCell(Text(
|
|
|
|
event_data[index]
|
|
|
|
[
|
|
|
|
'topic']
|
|
|
|
.toString(),
|
|
|
|
softWrap:
|
|
|
|
true)),
|
|
|
|
DataCell(Text(
|
|
|
|
event_data[index]
|
|
|
|
[
|
|
|
|
'role']
|
|
|
|
.toString(),
|
|
|
|
softWrap:
|
|
|
|
true)),
|
|
|
|
|
|
|
|
// Add more DataCells as needed
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
color: Colors.white,
|
|
|
|
child: Align(
|
|
|
|
alignment:
|
|
|
|
Alignment.center,
|
|
|
|
child: Padding(
|
|
|
|
padding:
|
|
|
|
const EdgeInsets
|
|
|
|
.all(8.0),
|
|
|
|
child: OutlinedButton(
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (_) =>
|
|
|
|
EventsData()));
|
|
|
|
},
|
|
|
|
child:
|
|
|
|
Text('Show More'),
|
|
|
|
style: OutlinedButton
|
|
|
|
.styleFrom(
|
|
|
|
shape:
|
|
|
|
RoundedRectangleBorder(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius
|
|
|
|
.circular(
|
|
|
|
12),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
]),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
2024-07-05 08:48:29 +00:00
|
|
|
), // adds spacing between the text and image
|
|
|
|
|
|
|
|
// adds spacing between the image and button
|
|
|
|
// Card(
|
|
|
|
// surfaceTintColor: Colors.white,
|
|
|
|
// clipBehavior: Clip.antiAlias,
|
|
|
|
// color: Colors.white,
|
|
|
|
// elevation: 5,
|
|
|
|
// shape: RoundedRectangleBorder(
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// 15.0), // adds rounded corners
|
|
|
|
// ),
|
|
|
|
// child: Padding(
|
|
|
|
// padding: const EdgeInsets.all(18.0),
|
|
|
|
// child: Row(
|
|
|
|
// mainAxisAlignment:
|
|
|
|
// MainAxisAlignment.start,
|
|
|
|
// // mainAxisSize: MainAxisSize.min,
|
|
|
|
// children: [
|
|
|
|
// Text1(
|
|
|
|
// title: "Publications",
|
|
|
|
// txtcolor: Color.fromARGB(
|
|
|
|
// 255, 0, 71, 137),
|
|
|
|
// fontweight: FontWeight.bold,
|
|
|
|
// txtfont: 20.0),
|
|
|
|
// const SizedBox(
|
|
|
|
// height: 15.0,
|
|
|
|
// ),
|
|
|
|
// Text1(
|
|
|
|
// title: widget.text![
|
|
|
|
// "publications_count"]
|
|
|
|
// .toString(),
|
|
|
|
// txtfont: 18.0,
|
|
|
|
// txtcolor: Color.fromARGB(
|
|
|
|
// 255, 0, 71, 137),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
|
2024-06-28 08:14:42 +00:00
|
|
|
SizedBox(
|
|
|
|
height: 10.0,
|
|
|
|
),
|
2024-07-05 08:48:29 +00:00
|
|
|
Flexible(
|
|
|
|
flex: 1,
|
2024-06-28 08:14:42 +00:00
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.all(18.0),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
Text1(
|
|
|
|
title: "Trails",
|
2024-07-05 08:48:29 +00:00
|
|
|
txtcolor:
|
|
|
|
const Color.fromARGB(
|
|
|
|
255, 0, 71, 137),
|
2024-06-28 08:14:42 +00:00
|
|
|
fontweight: FontWeight.bold,
|
|
|
|
txtfont: 20.0),
|
|
|
|
const SizedBox(
|
2024-07-05 08:48:29 +00:00
|
|
|
width: 8.0,
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
2024-07-05 08:48:29 +00:00
|
|
|
// Text1(
|
|
|
|
// title: widget
|
|
|
|
// .text!["publications_count"]
|
|
|
|
// .toString(),
|
|
|
|
// txtfont: 18.0,
|
|
|
|
// txtcolor: Color.fromARGB(
|
|
|
|
// 255, 0, 71, 137),
|
|
|
|
// )
|
2024-06-28 08:14:42 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
height: 10.0,
|
|
|
|
),
|
2024-07-05 08:48:29 +00:00
|
|
|
Flexible(
|
|
|
|
flex: 1,
|
|
|
|
child: Card(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(0.0),
|
|
|
|
),
|
|
|
|
color: const Color.fromARGB(
|
|
|
|
255, 0, 71, 137),
|
|
|
|
child: ExpansionTile(
|
|
|
|
maintainState: true,
|
|
|
|
onExpansionChanged:
|
|
|
|
(bool expanded) {
|
|
|
|
setState(() {
|
|
|
|
_isExpanded = expanded;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
backgroundColor:
|
|
|
|
const Color.fromARGB(
|
|
|
|
255, 0, 71, 137),
|
|
|
|
trailing: Icon(
|
|
|
|
_isExpanded
|
|
|
|
? Icons
|
|
|
|
.keyboard_arrow_up
|
|
|
|
: Icons
|
|
|
|
.keyboard_arrow_down,
|
|
|
|
color: Colors.white),
|
|
|
|
// collapsedBackgroundColor: Color(0xFF2b9af3),
|
|
|
|
initiallyExpanded: true,
|
|
|
|
title: Padding(
|
|
|
|
padding:
|
|
|
|
const EdgeInsets.all(8.0),
|
|
|
|
child: Row(
|
|
|
|
//mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
GestureDetector(
|
|
|
|
onTap: () async {
|
|
|
|
final provider = Provider
|
|
|
|
.of<InteractionProvider>(
|
|
|
|
context,
|
|
|
|
listen:
|
|
|
|
false);
|
|
|
|
if (getCount(
|
|
|
|
provider
|
|
|
|
.intConfigDataList[
|
|
|
|
0]
|
|
|
|
.name,
|
|
|
|
provider) !=
|
|
|
|
0) {
|
|
|
|
provider.savedList
|
|
|
|
.where((element) =>
|
|
|
|
element
|
|
|
|
.form ==
|
|
|
|
provider
|
2024-06-28 08:14:42 +00:00
|
|
|
.intConfigDataList[
|
|
|
|
0]
|
2024-07-05 08:48:29 +00:00
|
|
|
.name)
|
|
|
|
.toList();
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (BuildContext
|
|
|
|
context) =>
|
|
|
|
SavedFormListScreen(
|
|
|
|
formname: provider
|
|
|
|
.intConfigDataList[0]
|
|
|
|
.name,
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Text1(
|
|
|
|
title:
|
|
|
|
"Interaction Form",
|
|
|
|
txtcolor:
|
|
|
|
Colors.white,
|
|
|
|
fontweight:
|
|
|
|
FontWeight
|
|
|
|
.normal,
|
|
|
|
txtfont: 20.0),
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
width: 8.0,
|
|
|
|
),
|
|
|
|
// Text1(
|
|
|
|
// title: widget
|
|
|
|
// .text![
|
|
|
|
// "affiliations_count"]
|
|
|
|
// .toString(),
|
|
|
|
// txtfont: 18.0,
|
|
|
|
// txtcolor:
|
|
|
|
// const Color
|
|
|
|
// .fromARGB(
|
|
|
|
// 255,
|
|
|
|
// 60,
|
|
|
|
// 82,
|
|
|
|
// 102),
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
2024-07-05 08:48:29 +00:00
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
height:
|
|
|
|
MediaQuery.of(context)
|
|
|
|
.size
|
|
|
|
.height /
|
|
|
|
5,
|
|
|
|
color: Colors.white,
|
|
|
|
child: Consumer<
|
|
|
|
ViewInteractionProvider>(
|
|
|
|
builder: (BuildContext
|
|
|
|
context,
|
|
|
|
provider,
|
|
|
|
Widget? child) {
|
|
|
|
print(
|
|
|
|
"P_leangth : ${provider.savedList.length}");
|
|
|
|
return ListView.builder(
|
|
|
|
shrinkWrap: true,
|
|
|
|
physics:
|
|
|
|
NeverScrollableScrollPhysics(),
|
|
|
|
itemCount: provider
|
|
|
|
.savedList
|
|
|
|
.take(2)
|
|
|
|
.length,
|
|
|
|
itemBuilder:
|
|
|
|
(context, index) {
|
|
|
|
return Column(
|
|
|
|
children: [
|
|
|
|
ListTile(
|
|
|
|
subtitle:
|
|
|
|
Text(
|
|
|
|
'Updated on ${provider.savedList[index].updatedTime}',
|
|
|
|
//style: TextStyle(fontStyle: FontStyle.italic),
|
|
|
|
),
|
|
|
|
title: Text(
|
|
|
|
provider
|
|
|
|
.savedList[
|
|
|
|
index]
|
|
|
|
.id,
|
|
|
|
),
|
|
|
|
trailing:
|
|
|
|
SizedBox(
|
|
|
|
width: 150,
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
IconButton(
|
|
|
|
onPressed:
|
|
|
|
() {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (BuildContext context) => ViewInteractionScreen(
|
|
|
|
saveInteraction: provider.savedList[index],
|
|
|
|
)));
|
|
|
|
},
|
|
|
|
icon:
|
|
|
|
const Icon(
|
|
|
|
Icons.info_outline,
|
|
|
|
size: 24,
|
|
|
|
color: Color.fromARGB(255, 8, 39, 92),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
IconButton(
|
|
|
|
onPressed:
|
|
|
|
() async {
|
|
|
|
await provider.initConfigData().then({
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (BuildContext context) => EditInteractionScreen(
|
|
|
|
saveInteraction: provider.savedList[index],
|
|
|
|
)))
|
|
|
|
});
|
|
|
|
},
|
|
|
|
icon:
|
|
|
|
const Icon(
|
|
|
|
Icons.edit,
|
|
|
|
size: 24,
|
|
|
|
color: Color.fromARGB(255, 8, 39, 92),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
IconButton(
|
|
|
|
onPressed:
|
|
|
|
() {
|
|
|
|
showDeleteRecordAlertDialog(context, provider.savedList[index].id, provider.savedList[index]);
|
|
|
|
},
|
|
|
|
icon:
|
|
|
|
const Icon(
|
|
|
|
Icons.delete,
|
|
|
|
size: 24,
|
|
|
|
color: Color.fromARGB(255, 8, 39, 92),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
]),
|
|
|
|
),
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (BuildContext context) => ViewInteractionScreen(
|
|
|
|
saveInteraction: provider.savedList[index],
|
|
|
|
)));
|
|
|
|
},
|
|
|
|
),
|
|
|
|
const Divider(),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
});
|
|
|
|
}),
|
|
|
|
),
|
|
|
|
|
|
|
|
// SingleChildScrollView(
|
|
|
|
// scrollDirection:
|
|
|
|
// Axis.horizontal,
|
|
|
|
// child: Container(
|
|
|
|
// width: MediaQuery.of(
|
|
|
|
// context)
|
|
|
|
// .size
|
|
|
|
// .width,
|
|
|
|
// color: Colors.white,
|
|
|
|
// child: Text("hiiiiii")),
|
|
|
|
// ),
|
|
|
|
Container(
|
|
|
|
color: Colors.white,
|
|
|
|
child: Align(
|
|
|
|
alignment:
|
|
|
|
Alignment.center,
|
|
|
|
child: Padding(
|
|
|
|
padding:
|
|
|
|
const EdgeInsets
|
|
|
|
.all(8.0),
|
|
|
|
child: OutlinedButton(
|
|
|
|
onPressed: () {
|
|
|
|
final provider =
|
|
|
|
Provider.of<
|
|
|
|
InteractionProvider>(
|
|
|
|
context,
|
|
|
|
listen:
|
|
|
|
false);
|
|
|
|
if (getCount(
|
|
|
|
provider
|
|
|
|
.intConfigDataList[
|
|
|
|
0]
|
|
|
|
.name,
|
|
|
|
provider) !=
|
|
|
|
0) {
|
|
|
|
provider.savedList
|
|
|
|
.where((element) =>
|
|
|
|
element
|
|
|
|
.form ==
|
|
|
|
provider
|
|
|
|
.intConfigDataList[
|
|
|
|
0]
|
|
|
|
.name)
|
|
|
|
.toList();
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (BuildContext
|
|
|
|
context) =>
|
|
|
|
SavedFormListScreen(
|
|
|
|
formname:
|
|
|
|
provider.intConfigDataList[0].name,
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child:
|
|
|
|
Text('Show More'),
|
|
|
|
style: OutlinedButton
|
|
|
|
.styleFrom(
|
|
|
|
shape:
|
|
|
|
RoundedRectangleBorder(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius
|
|
|
|
.circular(
|
|
|
|
12),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
]),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
|
|
|
),
|
2024-07-05 08:48:29 +00:00
|
|
|
//////////////////////////////////
|
|
|
|
// Padding(
|
|
|
|
// padding: const EdgeInsets.all(8.0),
|
|
|
|
// child: Row(
|
|
|
|
// mainAxisAlignment:
|
|
|
|
// MainAxisAlignment.start,
|
|
|
|
// //mainAxisSize: MainAxisSize.min,
|
|
|
|
// children: [
|
|
|
|
// GestureDetector(
|
|
|
|
// onTap: () async {
|
|
|
|
// ///
|
|
|
|
// // Navigator.push(
|
|
|
|
// // context,
|
|
|
|
// // MaterialPageRoute(
|
|
|
|
// // builder: (BuildContext
|
|
|
|
// // context) =>
|
|
|
|
// // InteractionScreen(
|
|
|
|
// // index: 0,
|
|
|
|
// // form:
|
|
|
|
// // "form3 demo")));
|
|
|
|
|
|
|
|
// /////////////////////////////////////
|
|
|
|
// ///
|
|
|
|
|
|
|
|
// final provider = Provider.of<
|
|
|
|
// InteractionProvider>(
|
|
|
|
// context,
|
|
|
|
// listen: false);
|
|
|
|
// if (getCount(
|
|
|
|
// provider
|
|
|
|
// .intConfigDataList[
|
|
|
|
// 0]
|
|
|
|
// .name,
|
|
|
|
// provider) !=
|
|
|
|
// 0) {
|
|
|
|
// provider.savedList
|
|
|
|
// .where((element) =>
|
|
|
|
// element.form ==
|
|
|
|
// provider
|
|
|
|
// .intConfigDataList[
|
|
|
|
// 0]
|
|
|
|
// .name)
|
|
|
|
// .toList();
|
|
|
|
// Navigator.push(
|
|
|
|
// context,
|
|
|
|
// MaterialPageRoute(
|
|
|
|
// builder: (BuildContext
|
|
|
|
// context) =>
|
|
|
|
// SavedFormListScreen(
|
|
|
|
// formname: provider
|
|
|
|
// .intConfigDataList[
|
|
|
|
// 0]
|
|
|
|
// .name,
|
|
|
|
// )));
|
|
|
|
// }
|
|
|
|
// /////////////////////////////////////////
|
|
|
|
// },
|
|
|
|
// child: Text1(
|
|
|
|
// title: "Interaction Form",
|
|
|
|
// txtcolor: Color.fromARGB(
|
|
|
|
// 255, 0, 71, 137),
|
|
|
|
// fontweight: FontWeight.bold,
|
|
|
|
// txtfont: 20.0),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
2024-06-28 08:14:42 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// )
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)
|
|
|
|
: Card(
|
|
|
|
surfaceTintColor: Colors.white,
|
|
|
|
margin: EdgeInsets.symmetric(
|
|
|
|
horizontal: 15.0, vertical: 5.0),
|
|
|
|
clipBehavior: Clip.antiAlias,
|
|
|
|
color: Colors.white,
|
|
|
|
elevation: 5.0,
|
2024-06-27 08:38:43 +00:00
|
|
|
child: Padding(
|
2024-06-28 08:14:42 +00:00
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: 1.0, vertical: 22.0),
|
|
|
|
child: Row(
|
2024-06-27 08:38:43 +00:00
|
|
|
children: <Widget>[
|
2024-06-28 08:14:42 +00:00
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
"Affliations",
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color.fromARGB(
|
|
|
|
255, 0, 71, 137),
|
|
|
|
fontSize: 13.0,
|
|
|
|
fontWeight: FontWeight.bold,
|
2024-06-27 08:38:43 +00:00
|
|
|
),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
height: 5.0,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
widget.text["affiliations_count"]
|
|
|
|
.toString(),
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 13.0,
|
|
|
|
color: Color.fromARGB(
|
2024-06-27 08:38:43 +00:00
|
|
|
255, 0, 71, 137),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
2024-06-27 08:38:43 +00:00
|
|
|
),
|
|
|
|
),
|
2024-06-28 08:14:42 +00:00
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
"Events",
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color.fromARGB(
|
|
|
|
255, 0, 71, 137),
|
|
|
|
fontSize: 13.0,
|
|
|
|
fontWeight: FontWeight.bold,
|
2024-06-27 08:38:43 +00:00
|
|
|
),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
height: 5.0,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
widget.text["events_count"]
|
|
|
|
.toString(),
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 13.0,
|
|
|
|
color: Color.fromARGB(
|
2024-06-27 08:38:43 +00:00
|
|
|
255, 0, 71, 137),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
2024-06-27 08:38:43 +00:00
|
|
|
),
|
|
|
|
),
|
2024-06-28 08:14:42 +00:00
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
"Publications",
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color.fromARGB(
|
|
|
|
255, 0, 71, 137),
|
|
|
|
fontSize: 13.0,
|
|
|
|
fontWeight: FontWeight.bold,
|
2024-06-27 08:38:43 +00:00
|
|
|
),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
height: 5.0,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
widget.text["publications_count"]
|
|
|
|
.toString(),
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 13.0,
|
|
|
|
color: Color.fromARGB(
|
2024-06-27 08:38:43 +00:00
|
|
|
255, 0, 71, 137),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
2024-06-27 08:38:43 +00:00
|
|
|
),
|
|
|
|
),
|
2024-06-28 08:14:42 +00:00
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
"Trails",
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color.fromARGB(
|
|
|
|
255, 0, 71, 137),
|
|
|
|
fontSize: 13.0,
|
|
|
|
fontWeight: FontWeight.bold,
|
2024-06-27 08:38:43 +00:00
|
|
|
),
|
2024-06-28 08:14:42 +00:00
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
height: 5.0,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
widget.text["publications_count"]
|
|
|
|
.toString(),
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 13.0,
|
|
|
|
color: Color.fromARGB(
|
2024-06-27 08:38:43 +00:00
|
|
|
255, 0, 71, 137),
|
|
|
|
),
|
2024-06-28 08:14:42 +00:00
|
|
|
)
|
|
|
|
],
|
2024-06-27 08:38:43 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
2024-06-10 11:11:00 +00:00
|
|
|
),
|
2024-06-27 08:38:43 +00:00
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
2024-05-20 10:29:02 +00:00
|
|
|
),
|
2024-06-27 08:38:43 +00:00
|
|
|
),
|
2024-06-10 11:11:00 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
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),
|
2024-05-20 10:29:02 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
2024-06-28 08:14:42 +00:00
|
|
|
|
|
|
|
Future<int> getCount(String form, InteractionProvider provider) async {
|
|
|
|
await provider.getRecords();
|
|
|
|
|
|
|
|
return provider.savedList.where((element) => element.form == form).length;
|
|
|
|
}
|
2024-07-05 08:48:29 +00:00
|
|
|
|
|
|
|
buidCard() {
|
|
|
|
Text("Hiii");
|
|
|
|
// Card(
|
|
|
|
// child: ExpandablePanel(
|
|
|
|
// header: Text("sjdjshdehrejkwhdjksdksljdiows"),
|
|
|
|
// collapsed: Text(
|
|
|
|
// "wssjdjshdehrejkwhdjksdksljdiowssjdjshdehrejkwhdjksdksljdiows",
|
|
|
|
// ),
|
|
|
|
// expanded: Text(
|
|
|
|
// "djksdksljdiowssjdjshdehrejkwhdjksdksljdiows",
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// );
|
|
|
|
}
|
|
|
|
|
|
|
|
showDeleteRecordAlertDialog(
|
|
|
|
BuildContext context, String record, SaveInteraction saveInteraction) {
|
|
|
|
// set up the buttons
|
|
|
|
ViewInteractionProvider provider =
|
|
|
|
Provider.of<ViewInteractionProvider>(context, listen: false);
|
|
|
|
Widget cancelButton = TextButton(
|
|
|
|
child: const Text("YES"),
|
|
|
|
onPressed: () async {
|
|
|
|
await provider.deleteRecord(saveInteraction).then((value) {
|
|
|
|
_displaySnackBar("Deleted sucessfully!");
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
});
|
|
|
|
},
|
|
|
|
);
|
|
|
|
Widget continueButton = TextButton(
|
|
|
|
child: const Text("NO"),
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
},
|
|
|
|
);
|
|
|
|
|
|
|
|
// set up the AlertDialog
|
|
|
|
AlertDialog alert = AlertDialog(
|
|
|
|
title: const Text(""),
|
|
|
|
content: Text("Are you sure you want to delete the record $record ?"),
|
|
|
|
actions: [
|
|
|
|
cancelButton,
|
|
|
|
continueButton,
|
|
|
|
],
|
|
|
|
);
|
|
|
|
|
|
|
|
// show the dialog
|
|
|
|
showDialog(
|
|
|
|
context: context,
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
return alert;
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
_displaySnackBar(String msg) {
|
|
|
|
final snackBar = SnackBar(
|
|
|
|
content: Text(
|
|
|
|
msg,
|
|
|
|
style: const TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold),
|
|
|
|
));
|
|
|
|
ScaffoldMessenger.of(context).showSnackBar(snackBar);
|
|
|
|
//scaffoldKeyLogin.currentState!.showSnackBar(snackBar);
|
|
|
|
}
|
2024-05-20 10:29:02 +00:00
|
|
|
}
|
2024-06-27 08:38:43 +00:00
|
|
|
|
2024-06-28 08:14:42 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
2024-06-27 08:38:43 +00:00
|
|
|
|
|
|
|
// import 'package:discover_module/custom_widget/text.dart';
|
|
|
|
// import 'package:discover_module/provider_class/single_hcpprovider.dart';
|
|
|
|
// import 'package:discover_module/ui_screen/interactionform/NewtworkConnectivity.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';
|
|
|
|
// import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
// class Profile extends StatefulWidget {
|
|
|
|
// const Profile({Key? key, required this.text}) : super(key: key);
|
|
|
|
// final String text;
|
|
|
|
// @override
|
|
|
|
// State<Profile> createState() => _ProfileState();
|
|
|
|
// }
|
|
|
|
|
|
|
|
// class _ProfileState extends State<Profile> {
|
|
|
|
// @override
|
|
|
|
// void initState() {
|
|
|
|
// // TODO: implement initState
|
|
|
|
// super.initState();
|
|
|
|
// checkinternet();
|
|
|
|
// gethcpinfo();
|
|
|
|
// print("Widget_isssIndex_iss ${widget.text}");
|
|
|
|
// }
|
|
|
|
|
|
|
|
// Future<void> checkinternet() async {
|
|
|
|
// print("hiii");
|
|
|
|
// NetworkConnectivity networkConnectivity = NetworkConnectivity();
|
|
|
|
|
|
|
|
// bool isOnline = await networkConnectivity.isInternetAvailable();
|
|
|
|
// print("onlineproviderrrr: $isOnline");
|
|
|
|
// }
|
|
|
|
|
|
|
|
// void gethcpinfo() {
|
|
|
|
// Provider.of<Singlehcpdetails>(context, listen: false).hcpinfo();
|
|
|
|
// }
|
|
|
|
|
|
|
|
// @override
|
|
|
|
// Widget build(BuildContext context) {
|
|
|
|
// return SafeArea(
|
|
|
|
// child: 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: Consumer<Singlehcpdetails>(builder: (context, value, child) {
|
|
|
|
// return ListView.builder(
|
|
|
|
// itemCount: value.singlehcpinfo.length,
|
|
|
|
// itemBuilder: (context, index) {
|
|
|
|
// // children: [
|
|
|
|
// final hcpdata = value.singlehcpinfo[index];
|
|
|
|
// print("Check: hcp: ${hcpdata.addr}");
|
|
|
|
// return 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),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// );
|
|
|
|
// }
|
|
|
|
// }
|