Digia Academy
Digia StudioDiscordLinkedIn
  • Introduction
    • FAQs
  • What's New
    • 2024
      • March
  • DIGIA STUDIO INTRODUCTION
    • Dashboard
    • Builder Tool
      • Navigation Menu
      • Tool Bar
      • Pages and Widgets Panel
      • Canvas Area
      • Properties Panel
    • Creating a New Project
    • Creating new Pages
    • Working with Widget Tree
    • Build Your First App
      • Hello World
      • Bytes App
        • Onboarding
        • Defining API Calls
        • Courses
        • Articles
        • Viewing your App
    • SDK Integration
      • Insert Single Pages from Digia Studio
  • Actions
    • Call API Rest Action
    • Call Rest API
    • Pop Current
    • Pop to Route
    • openUrl
    • Go To Page
    • Post Message
    • Set Page State
    • Wait (delay)
    • Drawer
    • Toast
    • Open Dialog
    • Share
    • Copy to Clipboard
  • Operations
    • API Call
    • Operators
      • Json Operators
      • Logical Operators
      • Date Time Operators
      • Math Operators
      • String Operations
  • BUILDING UI
    • Widgets
      • Form Widgets
        • PinField
        • Calendar
        • Text Form Field
      • Base Widgets
        • Animated Button
        • Check Box
        • Video Player
        • Spacer
        • Stack
        • Wrap
        • Text
        • Avatar
        • Rich Text
        • Image
        • Button
        • Icon
        • Switch
        • Sized Box
        • HtmlView
        • Lottie Animation
        • Linear Progress Bar
        • YouTube Player
        • Circular Progress Bar
      • Layout Widgets
        • ListView
        • Web View
        • Future Builder
        • Conditional Builder
        • Stream Builder
        • GridView
        • Column
        • Row
        • Container
        • Expandable
        • Divider (Horizontal)
        • Divider (Vertical)
        • Carousel
      • Persistent Footers Widgets
        • NavigationBar Widget
      • Page Widgets
        • Stepper Widget
        • Scaffold Widget
        • Paginated Listview Widget
        • TabView
        • AppBar
      • Widget Commonalities
    • Event Handlers
  • Theme
    • Colors
    • Typography
  • DATA AND BACKEND
    • API Calls
      • Setting up API Calls
      • Create API Calls
      • Import API From Curl
  • DEPLOYING YOUR APP
    • Deployment
    • Release History
  • Settings
    • App Settings
    • App Assets
    • Media Assets
  • JARGON
    • Data integration
Powered by GitBook
On this page
  • Adding RichText widget
  • Max Lines
  • Text Overflow
  • Text Alignment
  • Text Span Style Properties
  • Customizing
  • Event Handlers
  1. BUILDING UI
  2. Widgets
  3. Base Widgets

Rich Text

PreviousAvatarNextImage

Last updated 1 month ago

The RichText widget is used to display text with multiple styles and colors in a single paragraph. It allows you to customize different sections of your text separately, such as changing the color and font size or even adding actions.

You could use this widget to create more visually interesting and engaging text that are sure to capture the attention of your users! For example, a news app that displays articles with rich text formatting such as bold, italics, underlined, different font sizes, and colors.

Adding RichText widget

To add the RichText widget:

  1. Select the RichText widget from the Add Widget Button or add it directly from the widget tree.

  2. By default, it does not add any TextSpan (a section of a text) widget; to add one, click on Add Data under Text Spans.

  3. To stylize any TextSpan, select the Span dropdown and add the Text you want to add (Note: You can also fetch this Text from an API Call).

Similar to Text Widget, you can also customize the following properties:

Max Lines

Here are the instructions for setting the max lines.

Text Overflow

Here are the instructions for setting Text Overflow.

Text Alignment

Here are the instructions for aligning the Text.

Text Span Style Properties

Customizing

Event Handlers

To customize the TextSpan, click on and customize the values.

are the instructions for changing Text Span Style Properties.

The Widget Properties can be used to customize the appearance and behavior of your widget. View details for Widget's Default Properties .

View details for handling events .

here
Text Span Style Properties
Here
here