Created
December 25, 2022 21:01
-
-
Save josue1dario2/ff866446776d59a14511108a42428a36 to your computer and use it in GitHub Desktop.
1 - ActiveIndicator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActiveIndicator extends StatelessWidget { | |
const ActiveIndicator({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
int value = 202; | |
return Center( | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: [ | |
Image( | |
width: 24, | |
image: const AssetImage('assets/img/Dot.png'), | |
color: (Service.isActive(value)) | |
? const Color(0xFF4BE1A0) | |
: const Color(0xFFDADADA)), | |
const SizedBox( | |
width: 10, | |
), | |
Text( | |
Service.text(value), | |
style: CustomTextStyle.percentTitle, | |
) | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment