Skip to content

Instantly share code, notes, and snippets.

@josue1dario2
Created January 2, 2023 02:47
Show Gist options
  • Save josue1dario2/b405e477c66a052c6942ee7af2b1cc84 to your computer and use it in GitHub Desktop.
Save josue1dario2/b405e477c66a052c6942ee7af2b1cc84 to your computer and use it in GitHub Desktop.
1. CustomText
class CustomText extends StatelessWidget {
const CustomText(
{super.key,
required this.text,
required this.size,
required this.weight,
required this.color});
final String text;
final double size;
final FontWeight weight;
final Color color;
@override
Widget build(BuildContext context) {
return Text(
text,
style: TextStyle(
fontFamily: 'Poppins',
fontSize: size,
fontWeight: weight,
color: color),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment