fixed color bug on subject page
This commit is contained in:
parent
6f694e8abe
commit
329ad57e36
@ -117,8 +117,8 @@ class HeroScrollViewState extends State<HeroScrollView> {
|
|||||||
// ignore: deprecated_member_use
|
// ignore: deprecated_member_use
|
||||||
color: ColorsUtils()
|
color: ColorsUtils()
|
||||||
.darken(
|
.darken(
|
||||||
Theme.of(context).colorScheme.primary,
|
Theme.of(context).colorScheme.secondary,
|
||||||
amount: 0.4,
|
amount: 0.1,
|
||||||
)
|
)
|
||||||
.withOpacity(0.4),
|
.withOpacity(0.4),
|
||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width,
|
||||||
@ -158,8 +158,8 @@ class HeroScrollViewState extends State<HeroScrollView> {
|
|||||||
child: RoundBorderIcon(
|
child: RoundBorderIcon(
|
||||||
color: ColorsUtils()
|
color: ColorsUtils()
|
||||||
.darken(
|
.darken(
|
||||||
Theme.of(context).colorScheme.primary,
|
Theme.of(context).colorScheme.secondary,
|
||||||
amount: 0.4,
|
amount: 0.1,
|
||||||
)
|
)
|
||||||
.withOpacity(0.9),
|
.withOpacity(0.9),
|
||||||
width: 1.5,
|
width: 1.5,
|
||||||
@ -169,8 +169,8 @@ class HeroScrollViewState extends State<HeroScrollView> {
|
|||||||
size: widget.iconSize / 2,
|
size: widget.iconSize / 2,
|
||||||
color: ColorsUtils()
|
color: ColorsUtils()
|
||||||
.darken(
|
.darken(
|
||||||
Theme.of(context).colorScheme.primary,
|
Theme.of(context).colorScheme.secondary,
|
||||||
amount: 0.4,
|
amount: 0.1,
|
||||||
)
|
)
|
||||||
.withOpacity(0.8),
|
.withOpacity(0.8),
|
||||||
),
|
),
|
||||||
|
@ -39,6 +39,7 @@ class GradesCountItem extends StatelessWidget {
|
|||||||
// ],
|
// ],
|
||||||
// );
|
// );
|
||||||
return Row(
|
return Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
GradeValueWidget(
|
GradeValueWidget(
|
||||||
GradeValue(value, "Value", "Value", 100),
|
GradeValue(value, "Value", "Value", 100),
|
||||||
@ -50,7 +51,7 @@ class GradesCountItem extends StatelessWidget {
|
|||||||
width: 12.0,
|
width: 12.0,
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: MediaQuery.of(context).size.width / 1.7,
|
width: MediaQuery.of(context).size.width / 1.8,
|
||||||
child: ProgressBar(
|
child: ProgressBar(
|
||||||
value: (count / total),
|
value: (count / total),
|
||||||
backgroundColor: gradeColor(
|
backgroundColor: gradeColor(
|
||||||
@ -64,13 +65,17 @@ class GradesCountItem extends StatelessWidget {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 12.0,
|
width: 12.0,
|
||||||
),
|
),
|
||||||
Text(
|
SizedBox(
|
||||||
|
width: 22.0,
|
||||||
|
child: Text(
|
||||||
count.toString(),
|
count.toString(),
|
||||||
|
textAlign: TextAlign.center,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
fontSize: 14.0,
|
fontSize: 14.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user