tdesign_flutter 0.0.7 tdesign_flutter: ^0.0.7 copied to clipboard
Tencent TDesign UI component library of Flutter, suitable for use in mobile projects.
Tencent TDesign UI component library of Flutter, suitable for use in mobile projects.
Features: #
- Provides Flutter UI component library in TDesign design style
- Support customizing themes according to App design style
- Provides commonly used Icon library and supports customized replacement
- Define color groups according to the TDesign specification, which can be viewed in TDColors to facilitate the adaptation of components to the TDesign specification.
- The color value declaration class can add default colors and view the default display effect of color values in real time.
Notice: #
-
Theme styles such as color/font size/font style/rounded corners/shadow can be configured through json files. Get theme data through
TDTheme.of(context)
orTDTheme.defaultData()
. It is recommended that all components useTDTheme.of(context)
Only components that do not need to follow the local theme can useTDTheme.defaultData()
.Examples of usage of colors, fonts, rounded corners, etc.:
TDTheme.of(context).brandNormalColor
TDTheme.defaultData().fontBodyLarge
- TDesign's icons do not follow the theme, they are all in ttf format, usage examples:
Icon(TDIcons.activity)
- Example:
example/lib/page/
SDK dependency version: #
dart: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
Other technology stack implementations: #
- Desktop Vue 3 implementation:web-vue-next
- Desktop Vue implementation: web-react
- Implementation of miniprogram: miniprogram
Open source agreement: #
TDesign is licensed under the MIT LICENSE