Skip to main content

flet_gradient_text

It displays text with a colorful gradient and optional animation of the gradient.

installation:

pip install flet_gradient_text

🔧 Parameters

  • text(str): The text content to display
  • text_size(optional): default text_size=20, Font size of the text
  • text_weight: optional, Font weight (e.g., ft.FontWeight.BOLD)
  • text_style(optional): property of type ft.TextStyle
  • animate (bool): default animate=False, True to Enable animation
  • duration(float or int): default duration=0.5, Controls the speed of the animation
  • gradient: (optional) Custom gradient to apply over the text, default LinearGradient
  • on_click(optional): Event handler when the text is clicked
  • on_hover(optional): Event handler when hovering over the text

🧩 Usage

import flet as ft
from flet_gradient_text import GradientText

def main(page: ft.Page):
    page.add(
        GradientText(
            text="Hello Gradient!",
            text_size=40,
            text_weight=ft.FontWeight.BOLD,
            animate=True,
            duration=1,
        )
    )

ft.app(target=main)

Metadata

Release files for flet-gradient-text 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flet-gradient-text 1.1.2
File Size Uploaded
flet_gradient_text-1.1.2.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flet-gradient-text 1.1.2
File Interpreter ABI Platform
flet_gradient_text-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / flet_gradient_text-1.1.2.tar.gz

Download URL flet_gradient_text-1.1.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
eedd111eab881dd7d5e51f40792a6662065380c86c3b6a2ffb3b0168a6a324d9
BLAKE2b-256 checksum
How to use checksums
7c155f3f80bfc20d4659d335907ae5879d8a5a40a28df83d430526a25cc45bf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / flet_gradient_text-1.1.2-py3-none-any.whl

Download URL flet_gradient_text-1.1.2-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8636f1f0a1e3fddaf123dbdc0e35a40a12901dd76d6fc1088873d8041e7d0d9
BLAKE2b-256 checksum
How to use checksums
6d33a7f331cab01591bdefccefcf9fe7c43cac42d116382de928f29bbac03d1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page