Skip to content

Commit

Permalink
Merge pull request #427 from lahirulakruwan/main
Browse files Browse the repository at this point in the history
Student enrollment ui button issues fixed
  • Loading branch information
YujithIsura authored Oct 9, 2024
2 parents 6661357 + 70748bc commit cb6d61b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class _PersonDataExcelReportState extends State<PersonDataExcelReport> {
ignoring: widget.isFetching,
child: ElevatedButton.icon(
icon: Icon(Icons.download),
label: Text('Excel Export'),
label: Text('Excel Export',style: TextStyle(fontSize: 12),),
style: ElevatedButton.styleFrom(
backgroundColor: Colors.deepPurpleAccent,
shape:
Expand Down
31 changes: 19 additions & 12 deletions campus/frontend/lib/avinya/enrollment/lib/widgets/students.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class _StudentsState extends State<Students> {
},
),
SizedBox(
width: 30,
width: 10,
),
Text('Select a Programme :'),
SizedBox(
Expand Down Expand Up @@ -344,13 +344,13 @@ class _StudentsState extends State<Students> {
},
),
SizedBox(
width: 30,
width: 10,
),
Center(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: SizedBox(
width: 300,
width: 250,
child: TextField(
decoration: InputDecoration(
labelText: 'Search by Name or NIC',
Expand All @@ -367,11 +367,13 @@ class _StudentsState extends State<Students> {
SizedBox(
width: 10,
),
Expanded(
FittedBox(
alignment: Alignment.topLeft,
fit: BoxFit.contain,
child: Container(
alignment: Alignment.bottomRight,
margin: const EdgeInsets.only(right: 20.0),
width: 25.0,
width: 100.0,
height: 30.0,
child: ElevatedButton(
onPressed: () {
Expand All @@ -384,7 +386,10 @@ class _StudentsState extends State<Students> {
),
);
},
child: const Text('Create New'),
child: const Text(
'Create New',
style: TextStyle(fontSize: 12),
),
style: ElevatedButton.styleFrom(
padding: const EdgeInsets.symmetric(
horizontal: 10.0, vertical: 5.0),
Expand All @@ -394,14 +399,16 @@ class _StudentsState extends State<Students> {
),
),
SizedBox(
width: 10,
width: 5,
),
Expanded(
FittedBox(
alignment: Alignment.topLeft,
fit: BoxFit.contain,
child: Container(
alignment: Alignment.bottomRight,
margin: EdgeInsets.only(right: 20.0),
width: 25.0,
height: 30.0,
alignment: Alignment.centerLeft,
margin: EdgeInsets.only(right: 10.0),
width: 140.0,
height: 50.0,
child: PersonDataExcelReport(
fetchedPersonData: filteredStudents,
columnNames: columnNames,
Expand Down

0 comments on commit cb6d61b

Please sign in to comment.