HubLensUI ComponentsTencent/tdesign-flutter
// archived 2026-04-10
Tencent

tdesign-flutter

Mobile#Flutter#UI Components#Dart#Design System
View on GitHub
1,116

// summary

TDesign Flutter is a cross-platform UI component library built on Tencent's design system for mobile and web applications. It provides a comprehensive set of pre-built components, theme customization tools, and icon support to ensure consistent design across iOS, Android, and Web. The library also supports advanced features like dark mode, custom theme generation, and integration with Flutter's internationalization capabilities.

// technical analysis

TDesign Flutter is a cross-platform UI component library built on the Flutter framework that implements Tencent's design system specifications. It addresses the need for consistent, high-quality UI development across Android, iOS, and Web by providing a comprehensive suite of pre-built components and flexible theme customization tools. The library emphasizes design consistency through a structured theme configuration system, allowing developers to manage colors, typography, and styles via JSON or a dedicated generator, while balancing ease of use with the ability to handle complex requirements like dark mode and internationalization.

// key highlights

01
Provides a comprehensive library of Flutter UI components strictly following TDesign design specifications.
02
Supports flexible theme customization through JSON configuration files for colors, fonts, and component styles.
03
Includes a dedicated Theme Generator tool that simplifies the creation and export of custom design tokens.
04
Features built-in support for dark mode, allowing seamless switching between light and dark color schemes.
05
Offers a robust icon library that can be easily integrated and replaced as needed.
06
Enables internationalization by allowing developers to extend the TDResourceDelegate class to inject localized text resources.

// use cases

01
Rapid development of consistent, cross-platform mobile and web applications
02
Customizing application themes using JSON configurations or the TDesign Theme Generator
03
Implementing dark mode and internationalization within Flutter projects

// getting started

To begin using TDesign Flutter, add the dependency 'tdesign_flutter: ^0.2.7' to your pubspec.yaml file and import the package using 'import 'package:tdesign_flutter/tdesign_flutter.dart';'. You can then configure your application's theme by injecting TDThemeData into your MaterialApp and utilizing the library's components within your widget tree.