Commit 0e43368c authored by Dasun Madushanka's avatar Dasun Madushanka

update components - clr dots

parent 5206a3e8
import 'package:flutter/material.dart';
import '../../../constants.dart';
class ColorDot extends StatelessWidget {
const ColorDot({
Key key,
this.fillColor,
// by default we set it false
this.isSelected = false,
}) : super(key: key);
final Color fillColor;
final bool isSelected;
@override
Widget build(BuildContext context) {
return Container(
margin:
// left and right padding 8
EdgeInsets.symmetric(horizontal: kDefaultPadding / 2.5),
padding: EdgeInsets.all(3),
height: 24,
width: 24,
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(
color: isSelected ? Color(0xFF80989A) : Colors.transparent,
),
),
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
color: fillColor,
),
),
);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment