Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed achievements cell UI #231

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading