Rich Text Widget in Flutter | Flutter RichText widget | How to use RichText in flutter |Hindi - Urdu
RichText
The RichText widget displays text that uses multiple different styles. The text to display is described using a tree of TextSpan objects, each of which has an associated style that is used for that subtree. The text might break across multiple lines or might all be displayed on the same line depending on the layout constraints.
Text displayed in a RichText widget must be explicitly styled. When picking which style to use, consider using DefaultTextStyle.of the current BuildContext to provide defaults. For more details on how to style text in a RichText widget, see the documentation for TextStyle.
Consider using the Text widget to integrate with the DefaultTextStyle automatically. When all the text uses the same style, the default constructor is less verbose. The Text.rich constructor allows you to style multiple spans with the default text style while still allowing specified styles per span.
Make text styling more effective with RichText widget
RichText provides more options to the way a text is displayed on the screen.
The style property of text widget is used to apply various styles to a text, but a limitation of it is, the style gets applied to the entire text irrespective of whether the text is a single line or multiline.
RichText structure
RichText uses TextSpan as a parent object that has its own style property along with a text parameter which we can input the actual text. The parent object then can have a number of TextSpan objects as children who have their own style property that can be applied to respective text.
Flutter – RichText Widget
The RichText widget is used to display text that uses various different styles. The displayed text is described using a tree of TextSpan objects, each of which has its own associated style that is used for that subtree. Depending on the layout constraints the text might break across multiple lines or might all be displayed on the same line.
flutter richtext,flutter richtext widget,richtext in flutter,richtext widget,textspan flutter,widget span flutter,richtext flutter
Check my apps on play store:
https://play.google.com/store/apps/details?id=com.miktech.candybursthttps://play.google.com/store/apps/details?id=com.MikTech.BubbleShootFor Flutter and Python Tutorials Subscribe this channel:
https://www.youtube.com/channel/UCsHIWD4kRiH2XEu7lvUe--gFollow My Facebook Page:
https://web.facebook.com/JAVA-C-Tutorials-100746911709127you do not have knowledge about the basic of java so follow the link below
https://www.youtube.com/watch?v=8e9r1w3iFz4&list=PLIirX8GfWeRza33fMsWWb4LZQ7zRH5B4For C# beginner tutorial follow the following link
https://www.youtube.com/watch?v=k5DPGtTYPzs&list=PLIirX8GfWeRyiy_4UTQMhE2EMBCuFgrUVFor C# Gui tutorial follow the Following link
https://www.youtube.com/watch?v=k5DPGtTYPzs&list=PLIirX8GfWeRyiy_4UTQMhE2EMBCuFgrUVProgramming Guru,Guru Programming,programming,gurru,programminggurru,RichText widget in flutter,flutter richtext widget,flutter rich text widget,how to use richtext in flutter,using rich text widget in flutter,flutter rich text,flutter placeholder,flutter placeholder widget,flutter widget of the week,richtext,textspan,richtext with textspan,google developers,flutter richtext,richtext in flutter,richtext widget,textspan flutter,richtext flutter
RichText Widget in Flutter | Flutter RichText widget | How to use RichText in flutter | Hindi - Urdu
RichText Widget in Flutter | Flutter RichText widget | How to use RichText in flutter | Hindi - Urdu
RichText Widget in Flutter | Flutter RichText widget | How to use RichText in flutter | Hindi - Urdu
RichText Widget in Flutter | Flutter RichText widget | How to use RichText in flutter | Hindi - Urdu
...
https://www.youtube.com/watch?v=SMzsMZk3xiY