Text Widget Properties in Flutter | Flutter Tutorials In Hindi | #63

Опубликовано: 09 Октябрь 2024
на канале: Ahirlog
15,457
202

In the Flutter framework, the Text widget has a number of properties that you can use to customize its appearance and behavior. Some of the most commonly used properties of the Text widget are:

data: This property specifies the text to display. It can be a String, a String with a String interpolation, or a String with a String literal.
style: This property specifies the style of the text, such as the font, color, and size. It can be a TextStyle object or a TextStyle factory.
textAlign: This property specifies the alignment of the text within the widget. It can be one of the values from the TextAlign enum, such as TextAlign.left, TextAlign.center, or TextAlign.right.
overflow: This property specifies how the text should be rendered when it overflows the widget's bounds. It can be one of the values from the TextOverflow enum, such as TextOverflow.clip, TextOverflow.ellipsis, or TextOverflow.fade.
maxLines: This property specifies the maximum number of lines that the text should be allowed to occupy. If the text overflows the widget's bounds and exceeds the maximum number of lines, it will be truncated and an ellipsis will be added.
textScaleFactor: This property specifies the scale factor to apply to the text. It can be used to adjust the size of the text relative to the default size

Blog: https://www.ahirlog.com/2022/11/text-...

----------------------------------
Text Widget in Flutter | Flutter Tutorials In Hindi | #62
   • Text Widget in Flutter | Flutter Tuto...  

Null Safety in Dart | Flutter Null Safety Explained | #58.3
   • Null Safety in Dart | Flutter Null Sa...  

Difference Between Stateless Widget and Stateful Widget in Flutter | #61
   • Difference Between Stateless Widget a...  

Generics in Dart | Dart for Flutter | #58.2
   • Generics in Dart | Dart for Flutter |...  

Enums in Dart | Enumerations | Flutter in Hindi | #58.1
   • Enums in Dart | Enumerations | Flutte...  

What is a Flutter Widget? | Widget Types | Flutter Widgets Explained | #60
   • What is a Flutter Widget? | Widget Ty...  
----------------------------------

My YouTube Gear:
Boya BYM1(Mic): https://amzn.to/3bvm69j
Redmi Note 7 Pro(Mic & Camera): https://amzn.to/3uRkVsb
MSI Motherboard: https://amzn.to/3fiQHYO
Intel i3 Processor: https://amzn.to/3w8TWbQ
Mouse: https://amzn.to/3yb8PMP
Keyboard: https://amzn.to/3bvmtkd
Wifi Adaptor: https://amzn.to/3fiQYuO
SSD: https://amzn.to/3w2w2Pa
Speakers: https://amzn.to/3w6pKhv

Instagram:   / ahirlog  

Facebook:   / ahirlog  

Twitter:   / ahirlog  

YouTube:    / ahirlog  

#ahirlog #flutter #dart

Last Summer by Ikson:   / ikson​  
Music promoted by Audio Library    • Last Summer – Ikson (No Copyright Music)