Created
January 2, 2023 02:47
-
-
Save josue1dario2/b405e477c66a052c6942ee7af2b1cc84 to your computer and use it in GitHub Desktop.
1. CustomText
This file contains hidden or 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 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