Skip to content

Instantly share code, notes, and snippets.

@josue1dario2
Created December 25, 2022 21:03
Show Gist options
  • Save josue1dario2/c5ae6f3b54a025496986014d6a257610 to your computer and use it in GitHub Desktop.
Save josue1dario2/c5ae6f3b54a025496986014d6a257610 to your computer and use it in GitHub Desktop.
6 - TotalIndicator
class TotalIndicator extends StatelessWidget {
const TotalIndicator({
super.key,
});
@override
Widget build(BuildContext context) {
return Center(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Image(width: 20, image: AssetImage('assets/img/total.png')),
const SizedBox(
width: 6,
),
Text(
Service.text(379),
style: CustomTextStyle.percentTitle,
),
Text('/${Service.text(410)}',
style: const TextStyle(
fontSize: 10,
color: Colors.white,
fontWeight: FontWeight.w800,
fontFamily: 'Poppins'))
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment