Skip to content

Instantly share code, notes, and snippets.

@josue1dario2
Created December 25, 2022 21:01
Show Gist options
  • Save josue1dario2/ff866446776d59a14511108a42428a36 to your computer and use it in GitHub Desktop.
Save josue1dario2/ff866446776d59a14511108a42428a36 to your computer and use it in GitHub Desktop.
1 - ActiveIndicator
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