bottom bar1

This commit is contained in:
poojakhatawate 2024-07-26 14:28:22 +05:30
parent b440d6ac10
commit 3771a44e0e
1 changed files with 446 additions and 91 deletions

View File

@ -333,7 +333,7 @@ class _NewProfileState extends State<NewProfile> {
]), ]),
), ),
const SizedBox( const SizedBox(
height: 8.0, height: 15.0,
), ),
Align( Align(
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
@ -465,7 +465,7 @@ class _NewProfileState extends State<NewProfile> {
style: TextStyle( style: TextStyle(
fontWeight: fontWeight:
FontWeight FontWeight
.w500), .w600),
), ),
)), )),
// DataColumn( // DataColumn(
@ -479,7 +479,10 @@ class _NewProfileState extends State<NewProfile> {
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Time Frame'))), 'Time Frame',
style: TextStyle(
fontWeight:
FontWeight.w600)))),
// DataColumn( // DataColumn(
// label: Expanded( // label: Expanded(
// child: Text( // child: Text(
@ -682,7 +685,7 @@ class _NewProfileState extends State<NewProfile> {
width: 8.0, width: 8.0,
), ),
Text1( Text1(
title: "3", title: "(3)",
txtcolor: Colors.white, txtcolor: Colors.white,
fontweight: fontweight:
FontWeight.normal, FontWeight.normal,
@ -728,31 +731,44 @@ class _NewProfileState extends State<NewProfile> {
// label: Expanded( // label: Expanded(
// child: Text( // child: Text(
// 'sl no'))), // 'sl no'))),
DataColumn( // DataColumn(
label: Expanded( // label: Expanded(
child: Text( // child: Text(
''))), // ''))),
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Artical Title', 'Artical Title',
style: TextStyle(
fontWeight:
FontWeight
.w600),
softWrap: softWrap:
true), true),
)), )),
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Journal Name', 'Journal Name',
softWrap: true, softWrap:
))), true,
style: TextStyle(
fontWeight:
FontWeight.w600)))),
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Date'))), 'Date',
style: TextStyle(
fontWeight:
FontWeight.w600)))),
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Authors'))), 'Authors',
style: TextStyle(
fontWeight:
FontWeight.w600)))),
// Add more columns as needed // Add more columns as needed
], ],
@ -761,13 +777,13 @@ class _NewProfileState extends State<NewProfile> {
.length, .length,
(index) => DataRow( (index) => DataRow(
cells: [ cells: [
DataCell(Text( // DataCell(Text(
publication_data[index] // publication_data[index]
[ // [
'id'] // 'id']
.toString(), // .toString(),
softWrap: // softWrap:
true)), // true)),
DataCell(Text( DataCell(Text(
publication_data[index] publication_data[index]
[ [
@ -901,7 +917,7 @@ class _NewProfileState extends State<NewProfile> {
width: 8.0, width: 8.0,
), ),
Text1( Text1(
title: "4", title: "(4)",
txtcolor: Colors.white, txtcolor: Colors.white,
fontweight: fontweight:
FontWeight.normal, FontWeight.normal,
@ -928,36 +944,49 @@ class _NewProfileState extends State<NewProfile> {
color: Colors.white, color: Colors.white,
child: DataTable( child: DataTable(
columns: const [ columns: const [
DataColumn( // DataColumn(
label: Expanded( // label: Expanded(
child: Text( // child: Text(
'', // '',
softWrap: // softWrap:
true))), // true))),
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Event Name', 'Event Name',
softWrap: true), softWrap: true,
style: TextStyle(
fontWeight:
FontWeight
.w600)),
)), )),
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Session Type', 'Session Type',
softWrap: softWrap:
true))), true,
style: TextStyle(
fontWeight:
FontWeight.w600)))),
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Topic', 'Topic',
softWrap: softWrap:
true))), true,
style: TextStyle(
fontWeight:
FontWeight.w600)))),
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Role', 'Role',
softWrap: softWrap:
true))), true,
style: TextStyle(
fontWeight:
FontWeight.w600)))),
// Add more columns as needed // Add more columns as needed
], ],
@ -965,12 +994,12 @@ class _NewProfileState extends State<NewProfile> {
event_data.length, event_data.length,
(index) => DataRow( (index) => DataRow(
cells: [ cells: [
DataCell(Text( // DataCell(Text(
event_data[index] // event_data[index]
['id'] // ['id']
.toString(), // .toString(),
softWrap: // softWrap:
true)), // true)),
DataCell(Text( DataCell(Text(
event_data[index] event_data[index]
[ [
@ -1104,7 +1133,7 @@ class _NewProfileState extends State<NewProfile> {
width: 8.0, width: 8.0,
), ),
Text1( Text1(
title: "4", title: "(4)",
txtcolor: Colors.white, txtcolor: Colors.white,
fontweight: fontweight:
FontWeight.normal, FontWeight.normal,
@ -1130,17 +1159,21 @@ class _NewProfileState extends State<NewProfile> {
color: Colors.white, color: Colors.white,
child: DataTable( child: DataTable(
columns: const [ columns: const [
DataColumn( // DataColumn(
label: Expanded( // label: Expanded(
child: Text( // child: Text(
'', // '',
softWrap: // softWrap:
true))), // true))),
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Trial Name', 'Trial Name',
softWrap: true), softWrap: true,
style: TextStyle(
fontWeight:
FontWeight
.w600)),
)), )),
DataColumn( DataColumn(
@ -1148,31 +1181,46 @@ class _NewProfileState extends State<NewProfile> {
child: Text( child: Text(
'Status', 'Status',
softWrap: softWrap:
true))), true,
style: TextStyle(
fontWeight:
FontWeight.w600)))),
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Sponsers', 'Sponsers',
softWrap: softWrap:
true))), true,
style: TextStyle(
fontWeight:
FontWeight.w600)))),
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Condition', 'Condition',
softWrap: softWrap:
true))), true,
style: TextStyle(
fontWeight:
FontWeight.w600)))),
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Intervention', 'Intervention',
softWrap: softWrap:
true))), true,
style: TextStyle(
fontWeight:
FontWeight.w600)))),
DataColumn( DataColumn(
label: Expanded( label: Expanded(
child: Text( child: Text(
'Phase', 'Phase',
softWrap: softWrap:
true))), true,
style: TextStyle(
fontWeight:
FontWeight.w600)))),
// Add more columns as needed // Add more columns as needed
], ],
@ -1180,12 +1228,12 @@ class _NewProfileState extends State<NewProfile> {
trial_data.length, trial_data.length,
(index) => DataRow( (index) => DataRow(
cells: [ cells: [
DataCell(Text( // DataCell(Text(
trial_data[index] // trial_data[index]
['id'] // ['id']
.toString(), // .toString(),
softWrap: // softWrap:
true)), // true)),
DataCell(Text( DataCell(Text(
trial_data[index] trial_data[index]
[ [
@ -1330,7 +1378,7 @@ class _NewProfileState extends State<NewProfile> {
width: 8.0, width: 8.0,
), ),
Text1( Text1(
title: "3", title: "(3)",
txtcolor: Colors.white, txtcolor: Colors.white,
fontweight: fontweight:
FontWeight.normal, FontWeight.normal,
@ -1932,6 +1980,7 @@ class _NewProfileState extends State<NewProfile> {
showModalBottomSheet<void>( showModalBottomSheet<void>(
// isScrollControlled: // isScrollControlled:
// true, // true,
context: context, context: context,
useRootNavigator: true, useRootNavigator: true,
@ -1964,7 +2013,9 @@ class _NewProfileState extends State<NewProfile> {
builder: (BuildContext context, ScrollController scrollController) { builder: (BuildContext context, ScrollController scrollController) {
return Container( return Container(
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
color: Colors.white, //color: Colors.white,
color: Color.fromARGB(255, 246, 248, 252),
// decoration: // decoration:
// BoxDecoration(borderRadius: BorderRadius.circular(10)), // BoxDecoration(borderRadius: BorderRadius.circular(10)),
// child: ListView( // child: ListView(
@ -1980,7 +2031,162 @@ class _NewProfileState extends State<NewProfile> {
controller: scrollController, controller: scrollController,
itemCount: 1, itemCount: 1,
itemBuilder: (BuildContext context, int index) { itemBuilder: (BuildContext context, int index) {
return Column( return
// Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// mainAxisSize: MainAxisSize.min,
// mainAxisAlignment: MainAxisAlignment.center,
// children: [
// // Row(
// // children: [
// // Text(
// // "Affiliation",
// // style: TextStyle(fontSize: 20.0),
// // )
// // ],
// // ),
// Row(
// crossAxisAlignment: CrossAxisAlignment.start,
// // mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// // Padding(
// // padding: const EdgeInsets.only(
// // left: 8.0, top: 28.0),
// // child: Text(
// // "Organization Name",
// // style: TextStyle(fontSize: 14.0),
// // ),
// // ),
// Padding(
// padding: const EdgeInsets.all(28.0),
// child: Text(
// affiliation_data['org_name'],
// style: TextStyle(fontSize: 18.0),
// ),
// )
// ],
// ),
// Container(
// color: Colors.grey.withOpacity(0.1),
// child: Row(
// // crossAxisAlignment: CrossAxisAlignment.start,
// mainAxisAlignment:
// MainAxisAlignment.spaceBetween,
// children: [
// Padding(
// padding: const EdgeInsets.only(
// left: 28.0, top: 18.0),
// child: Text(
// "Department",
// style: TextStyle(fontSize: 14.0),
// ),
// ),
// Padding(
// padding: const EdgeInsets.only(right: 8.0),
// child: Text(
// affiliation_data['dept'],
// style: TextStyle(fontSize: 14.0),
// ),
// )
// ],
// ),
// ),
// Row(
// // crossAxisAlignment: CrossAxisAlignment.start,
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// Padding(
// padding: const EdgeInsets.only(
// left: 8.0, top: 18.0),
// child: Text(
// "Role",
// style: TextStyle(fontSize: 14.0),
// ),
// ),
// Padding(
// padding: const EdgeInsets.only(right: 8.0),
// child: Text(
// affiliation_data['role'],
// style: TextStyle(fontSize: 14.0),
// ),
// )
// ],
// ),
// Container(
// color: Colors.grey.withOpacity(0.1),
// child: Row(
// // crossAxisAlignment: CrossAxisAlignment.start,
// mainAxisAlignment:
// MainAxisAlignment.spaceBetween,
// children: [
// Padding(
// padding: const EdgeInsets.only(
// left: 8.0, top: 18.0),
// child: Text(
// "Time Frame",
// style: TextStyle(fontSize: 14.0),
// ),
// ),
// Padding(
// padding: const EdgeInsets.only(right: 8.0),
// child: Text(
// affiliation_data['time_frame'],
// style: TextStyle(fontSize: 14.0),
// ),
// )
// ],
// ),
// ),
// Row(
// // crossAxisAlignment: CrossAxisAlignment.start,
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// Padding(
// padding: const EdgeInsets.only(
// left: 8.0, top: 18.0, bottom: 18.0),
// child: Text(
// "Oraganization Type",
// style: TextStyle(fontSize: 14.0),
// ),
// ),
// Padding(
// padding: const EdgeInsets.only(right: 8.0),
// child: Text(
// affiliation_data['org_type'],
// style: TextStyle(fontSize: 14.0),
// ),
// )
// ],
// ),
// Container(
// color: Colors.grey.withOpacity(0.1),
// child: Row(
// // crossAxisAlignment: CrossAxisAlignment.start,
// mainAxisAlignment:
// MainAxisAlignment.spaceBetween,
// children: [
// Padding(
// padding: const EdgeInsets.only(
// left: 8.0, top: 18.0, bottom: 18.0),
// child: Text(
// "Eng Type",
// style: TextStyle(fontSize: 14.0),
// ),
// ),
// Padding(
// padding: const EdgeInsets.only(right: 8.0),
// child: Text(
// affiliation_data['emg_type'],
// style: TextStyle(fontSize: 14.0),
// ),
// )
// ],
// ),
// ),
// ],
// );
Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
@ -1993,42 +2199,48 @@ class _NewProfileState extends State<NewProfile> {
// ) // )
// ], // ],
// ), // ),
Column( SizedBox(
height: 18.0,
),
Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.only(left: 18.0),
left: 8.0, top: 28.0),
child: Text(
"Organization Name",
style: TextStyle(fontSize: 12.0),
),
),
Padding(
padding: const EdgeInsets.only(left: 8.0),
child: Text( child: Text(
affiliation_data['org_name'], affiliation_data['org_name'],
style: TextStyle(fontSize: 14.0), style: TextStyle(
fontSize: 18.0,
color: Colors.grey[700]),
), ),
) )
], ],
), ),
SizedBox(
height: 18.0,
),
Divider(),
SizedBox(
height: 8.0,
),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.only(left: 18.0),
left: 8.0, top: 18.0),
child: Text( child: Text(
"Department", "Department",
style: TextStyle(fontSize: 12.0), style: TextStyle(fontSize: 13.0),
), ),
), ),
Padding( Padding(
padding: const EdgeInsets.only(left: 8.0), padding: const EdgeInsets.only(left: 18.0),
child: Text( child: Text(
affiliation_data['dept'], affiliation_data['dept'],
style: TextStyle(fontSize: 14.0), style: TextStyle(
fontSize: 15.0,
color: Colors.grey[700]),
), ),
) )
], ],
@ -2038,17 +2250,19 @@ class _NewProfileState extends State<NewProfile> {
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.only(
left: 8.0, top: 18.0), left: 18.0, top: 18.0),
child: Text( child: Text(
"Role", "Role",
style: TextStyle(fontSize: 12.0), style: TextStyle(fontSize: 13.0),
), ),
), ),
Padding( Padding(
padding: const EdgeInsets.only(left: 8.0), padding: const EdgeInsets.only(left: 18.0),
child: Text( child: Text(
affiliation_data['role'], affiliation_data['role'],
style: TextStyle(fontSize: 14.0), style: TextStyle(
fontSize: 15.0,
color: Colors.grey[700]),
), ),
) )
], ],
@ -2058,17 +2272,19 @@ class _NewProfileState extends State<NewProfile> {
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.only(
left: 8.0, top: 18.0), left: 18.0, top: 18.0),
child: Text( child: Text(
"Time Frame", "Time Frame",
style: TextStyle(fontSize: 12.0), style: TextStyle(fontSize: 13.0),
), ),
), ),
Padding( Padding(
padding: const EdgeInsets.only(left: 8.0), padding: const EdgeInsets.only(left: 18.0),
child: Text( child: Text(
affiliation_data['time_frame'], affiliation_data['time_frame'],
style: TextStyle(fontSize: 14.0), style: TextStyle(
fontSize: 15.0,
color: Colors.grey[700]),
), ),
) )
], ],
@ -2078,17 +2294,19 @@ class _NewProfileState extends State<NewProfile> {
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.only(
left: 8.0, top: 18.0), left: 18.0, top: 18.0),
child: Text( child: Text(
"Oraganization Type", "Oraganization Type",
style: TextStyle(fontSize: 12.0), style: TextStyle(fontSize: 13.0),
), ),
), ),
Padding( Padding(
padding: const EdgeInsets.only(left: 8.0), padding: const EdgeInsets.only(left: 18.0),
child: Text( child: Text(
affiliation_data['org_type'], affiliation_data['org_type'],
style: TextStyle(fontSize: 14.0), style: TextStyle(
fontSize: 15.0,
color: Colors.grey[700]),
), ),
) )
], ],
@ -2098,23 +2316,160 @@ class _NewProfileState extends State<NewProfile> {
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.only(
left: 8.0, top: 18.0), left: 18.0, top: 18.0),
child: Text( child: Text(
"Eng Type", "Eng Type",
style: TextStyle(fontSize: 12.0), style: TextStyle(fontSize: 13.0),
), ),
), ),
Padding( Padding(
padding: const EdgeInsets.only(left: 8.0), padding: const EdgeInsets.only(left: 18.0),
child: Text( child: Text(
affiliation_data['emg_type'], affiliation_data['emg_type'],
style: TextStyle(fontSize: 14.0), style: TextStyle(
fontSize: 15.0,
color: Colors.grey[700]),
), ),
) )
], ],
), ),
], ],
); );
// Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// mainAxisSize: MainAxisSize.min,
// mainAxisAlignment: MainAxisAlignment.center,
// children: [
// // Row(
// // children: [
// // Text(
// // "Affiliation",
// // style: TextStyle(fontSize: 20.0),
// // )
// // ],
// // ),
// Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// children: [
// Padding(
// padding: const EdgeInsets.only(
// left: 8.0, top: 28.0),
// child: Text(
// "Organization Name",
// style: TextStyle(fontSize: 13.0),
// ),
// ),
// Padding(
// padding: const EdgeInsets.only(left: 8.0),
// child: Text(
// affiliation_data['org_name'],
// style: TextStyle(fontSize: 16.0),
// ),
// )
// ],
// ),
// Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// children: [
// Padding(
// padding: const EdgeInsets.only(
// left: 8.0, top: 18.0),
// child: Text(
// "Department",
// style: TextStyle(fontSize: 12.0),
// ),
// ),
// Padding(
// padding: const EdgeInsets.only(left: 8.0),
// child: Text(
// affiliation_data['dept'],
// style: TextStyle(fontSize: 14.0),
// ),
// )
// ],
// ),
// Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// children: [
// Padding(
// padding: const EdgeInsets.only(
// left: 8.0, top: 18.0),
// child: Text(
// "Role",
// style: TextStyle(fontSize: 12.0),
// ),
// ),
// Padding(
// padding: const EdgeInsets.only(left: 8.0),
// child: Text(
// affiliation_data['role'],
// style: TextStyle(fontSize: 14.0),
// ),
// )
// ],
// ),
// Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// children: [
// Padding(
// padding: const EdgeInsets.only(
// left: 8.0, top: 18.0),
// child: Text(
// "Time Frame",
// style: TextStyle(fontSize: 12.0),
// ),
// ),
// Padding(
// padding: const EdgeInsets.only(left: 8.0),
// child: Text(
// affiliation_data['time_frame'],
// style: TextStyle(fontSize: 14.0),
// ),
// )
// ],
// ),
// Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// children: [
// Padding(
// padding: const EdgeInsets.only(
// left: 8.0, top: 18.0),
// child: Text(
// "Oraganization Type",
// style: TextStyle(fontSize: 12.0),
// ),
// ),
// Padding(
// padding: const EdgeInsets.only(left: 8.0),
// child: Text(
// affiliation_data['org_type'],
// style: TextStyle(fontSize: 14.0),
// ),
// )
// ],
// ),
// Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// children: [
// Padding(
// padding: const EdgeInsets.only(
// left: 8.0, top: 18.0),
// child: Text(
// "Eng Type",
// style: TextStyle(fontSize: 12.0),
// ),
// ),
// Padding(
// padding: const EdgeInsets.only(left: 8.0),
// child: Text(
// affiliation_data['emg_type'],
// style: TextStyle(fontSize: 14.0),
// ),
// )
// ],
// ),
// ],
// );
}, },
), ),
), ),