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