forked from firka/student-legacy
color bug fix
This commit is contained in:
parent
0bf6feb731
commit
05e9ee97ca
@ -236,7 +236,7 @@ class LessonTile extends StatelessWidget {
|
|||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
RoundBorderIcon(
|
RoundBorderIcon(
|
||||||
color: fill ? accent : Colors.black,
|
color: fill ? accent : AppColors.of(context).text,
|
||||||
width: 1.0,
|
width: 1.0,
|
||||||
icon: SizedBox(
|
icon: SizedBox(
|
||||||
width: 25,
|
width: 25,
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
|
import 'package:filcnaplo/theme/colors/colors.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class RoundBorderIcon extends StatelessWidget {
|
class RoundBorderIcon extends StatelessWidget {
|
||||||
final Color color;
|
final Color? color;
|
||||||
final double width;
|
final double width;
|
||||||
final double padding;
|
final double padding;
|
||||||
final Widget icon;
|
final Widget icon;
|
||||||
|
|
||||||
const RoundBorderIcon(
|
const RoundBorderIcon(
|
||||||
{super.key,
|
{super.key,
|
||||||
this.color = Colors.black,
|
this.color,
|
||||||
this.width = 1.5,
|
this.width = 1.5,
|
||||||
this.padding = 5.0,
|
this.padding = 5.0,
|
||||||
required this.icon});
|
required this.icon});
|
||||||
@ -17,7 +18,8 @@ class RoundBorderIcon extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: Border.all(color: color, width: width),
|
border: Border.all(
|
||||||
|
color: color ?? AppColors.of(context).text, width: width),
|
||||||
borderRadius: BorderRadius.circular(50.0),
|
borderRadius: BorderRadius.circular(50.0),
|
||||||
),
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user