mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-02 19:44:26 +00:00
Minor changes
This commit is contained in:
parent
5e30ac4986
commit
33f24f72e5
1 changed files with 8 additions and 5 deletions
|
@ -28,16 +28,19 @@ class ColorItem extends StatelessWidget {
|
|||
width: 50,
|
||||
height: 50,
|
||||
decoration: BoxDecoration(
|
||||
color: color.withOpacity(0.6),
|
||||
color: color,
|
||||
borderRadius: BorderRadius.circular(50)
|
||||
),
|
||||
child: selectedValue != null && selectedValue == numericValue
|
||||
? Icon(
|
||||
child: AnimatedOpacity(
|
||||
opacity: numericValue == selectedValue ? 1 : 0,
|
||||
duration: const Duration(milliseconds: 200),
|
||||
curve: Curves.easeInOut,
|
||||
child: Icon(
|
||||
Icons.check,
|
||||
size: 30,
|
||||
color: color.computeLuminance() > 0.5 ? Colors.black : Colors.white,
|
||||
)
|
||||
: null,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Add table
Reference in a new issue