forked from firka/student-legacy
yas
This commit is contained in:
parent
9b0beff9de
commit
c9362dcb8b
@ -19,37 +19,38 @@ class GradesCount extends StatelessWidget {
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Text.rich(
|
// TODO: make a new widget here, cuz this will not fit
|
||||||
TextSpan(children: [
|
// Text.rich(
|
||||||
TextSpan(
|
// TextSpan(children: [
|
||||||
text: gradesCount.reduce((a, b) => a + b).toString(),
|
// TextSpan(
|
||||||
style: const TextStyle(fontWeight: FontWeight.w600),
|
// text: gradesCount.reduce((a, b) => a + b).toString(),
|
||||||
),
|
// style: const TextStyle(fontWeight: FontWeight.w600),
|
||||||
const TextSpan(
|
// ),
|
||||||
text: "x",
|
// const TextSpan(
|
||||||
style: TextStyle(
|
// text: "x",
|
||||||
fontSize: 13.0,
|
// style: TextStyle(
|
||||||
),
|
// fontSize: 13.0,
|
||||||
),
|
// ),
|
||||||
]),
|
// ),
|
||||||
style: const TextStyle(fontSize: 15.0),
|
// ]),
|
||||||
),
|
// style: const TextStyle(fontSize: 15.0),
|
||||||
const SizedBox(
|
// ),
|
||||||
width: 10.0,
|
// const SizedBox(
|
||||||
),
|
// width: 10.0,
|
||||||
ClipRRect(
|
// ),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
// ClipRRect(
|
||||||
child: VerticalDivider(
|
// borderRadius: BorderRadius.circular(10.0),
|
||||||
width: 2,
|
// child: VerticalDivider(
|
||||||
thickness: 2,
|
// width: 2,
|
||||||
indent: 2,
|
// thickness: 2,
|
||||||
endIndent: 2,
|
// indent: 2,
|
||||||
color: MediaQuery.of(context).platformBrightness ==
|
// endIndent: 2,
|
||||||
Brightness.light
|
// color: MediaQuery.of(context).platformBrightness ==
|
||||||
? Colors.grey.shade300
|
// Brightness.light
|
||||||
: Colors.grey.shade700,
|
// ? Colors.grey.shade300
|
||||||
),
|
// : Colors.grey.shade700,
|
||||||
),
|
// ),
|
||||||
|
// ),
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: gradesCount
|
children: gradesCount
|
||||||
@ -58,6 +59,9 @@ class GradesCount extends StatelessWidget {
|
|||||||
child: GradesCountItem(count: e, value: index + 1)))
|
child: GradesCountItem(count: e, value: index + 1)))
|
||||||
.toList(),
|
.toList(),
|
||||||
),
|
),
|
||||||
|
const SizedBox(
|
||||||
|
width: 8.0,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user