fixed grade counter maybe and other visual bugs
This commit is contained in:
parent
1cd1d7ae88
commit
4ed3cfc90e
@ -17,14 +17,20 @@ class EventTile extends StatelessWidget {
|
|||||||
borderRadius: BorderRadius.circular(14.0),
|
borderRadius: BorderRadius.circular(14.0),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: padding ?? const EdgeInsets.symmetric(horizontal: 8.0),
|
padding: padding ?? const EdgeInsets.symmetric(horizontal: 8.0),
|
||||||
|
child: Theme(
|
||||||
|
data: Theme.of(context).copyWith(
|
||||||
|
highlightColor: Colors.transparent,
|
||||||
|
splashColor: Colors.transparent,
|
||||||
|
),
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
visualDensity: VisualDensity.compact,
|
visualDensity: VisualDensity.compact,
|
||||||
contentPadding: const EdgeInsets.only(left: 8.0, right: 12.0),
|
contentPadding: const EdgeInsets.only(left: 8.0, right: 12.0),
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14.0)),
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(14.0)),
|
||||||
leading: const ProfileImage(
|
leading: const ProfileImage(
|
||||||
name: "!",
|
name: "!",
|
||||||
radius: 22.0,
|
radius: 19.2,
|
||||||
),
|
),
|
||||||
title: Text(
|
title: Text(
|
||||||
event.title,
|
event.title,
|
||||||
@ -41,6 +47,7 @@ class EventTile extends StatelessWidget {
|
|||||||
minLeadingWidth: 0,
|
minLeadingWidth: 0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,7 @@ class GradesCount extends StatelessWidget {
|
|||||||
(int index) => grades.where((e) => e.value.value == index + 1).length);
|
(int index) => grades.where((e) => e.value.value == index + 1).length);
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding:
|
padding: const EdgeInsets.all(6.0),
|
||||||
const EdgeInsets.only(bottom: 6.0, top: 6.0, left: 12.0, right: 6.0),
|
|
||||||
child: IntrinsicHeight(
|
child: IntrinsicHeight(
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
@ -52,10 +51,10 @@ class GradesCount extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: gradesCount
|
children: gradesCount
|
||||||
.mapIndexed((index, e) => Padding(
|
.mapIndexed((index, e) => Padding(
|
||||||
padding: const EdgeInsets.only(left: 10.0),
|
padding: const EdgeInsets.only(left: 9.69),
|
||||||
child: GradesCountItem(count: e, value: index + 1)))
|
child: GradesCountItem(count: e, value: index + 1)))
|
||||||
.toList(),
|
.toList(),
|
||||||
),
|
),
|
||||||
|
@ -27,7 +27,7 @@ class GradesCountItem extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
const SizedBox(width: 3.0),
|
const SizedBox(width: 3.0),
|
||||||
GradeValueWidget(GradeValue(value, "Value", "Value", 100),
|
GradeValueWidget(GradeValue(value, "Value", "Value", 100),
|
||||||
size: 19.0, fill: true, shadow: false),
|
size: 18.0, fill: true, shadow: false),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user