Skip to content

Commit

Permalink
Added SingleChildScrollView to fix overflow bug error and made small …
Browse files Browse the repository at this point in the history
…UI changes to profile page.
  • Loading branch information
Jcheng777 committed Nov 15, 2024
1 parent dfaa272 commit f2b3bd8
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 219 deletions.
3 changes: 2 additions & 1 deletion game/lib/achievements/achievement_cell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class _AchievementCellState extends State<AchievementCell> {
onTap: () async {},
child: Container(
width: MediaQuery.sizeOf(context).width * 0.85,
height: MediaQuery.sizeOf(context).height * 0.11,
height: MediaQuery.sizeOf(context).height * 0.105,
//padding: EdgeInsets.all(5),
decoration: BoxDecoration(
color: Colors.white,
Expand All @@ -67,6 +67,7 @@ class _AchievementCellState extends State<AchievementCell> {
alignment: Alignment.centerLeft,
child: Container(
width: MediaQuery.sizeOf(context).width * 0.45,
padding: EdgeInsets.only(top: 2),
child: Text(
description,
maxLines: 2,
Expand Down
12 changes: 8 additions & 4 deletions game/lib/profile/completed_cell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Widget completedCell(
int points) {
return Container(
width: MediaQuery.sizeOf(context).width * 0.85,
height: MediaQuery.sizeOf(context).height * 0.11,
height: MediaQuery.sizeOf(context).height * 0.105,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(10.0),
Expand All @@ -38,7 +38,7 @@ Widget completedCell(
Padding(
padding: const EdgeInsets.all(10),
child: ClipRRect(
borderRadius: BorderRadius.circular(20),
borderRadius: BorderRadius.circular(10),
child: Image(
width: 64,
height: 64,
Expand All @@ -64,9 +64,13 @@ Widget completedCell(
children: [
Text(
"From " + type + " - ",
style: TextStyle(color: Colors.grey, fontSize: 12),
style: TextStyle(
color: Colors.grey,
fontSize: 12,
fontWeight: FontWeight.w600),
),
Text(date)
Text(date,
style: TextStyle(color: Colors.black, fontSize: 12))
],
),
Padding(
Expand Down
Loading

0 comments on commit f2b3bd8

Please sign in to comment.