chat_uikit_theme 1.0.4 chat_uikit_theme: ^1.0.4 copied to clipboard
chat uikit theme.
chat_uikit_theme #
Getting Started #
- If you want to use a theme, you need to implement
ChatUIKitThemeMixin
class _NextWidgetState extends State<NextWidget> with ChatUIKitThemeMixin {}
- override
themeBuilder
method
// The theme here is the theme after setting, you can take a value. There is no need to override the `build` once `themeBuilder` is used
Widget themeBuilder(BuildContext context, ChatUIKitTheme theme) {
// return some widget;
}
- Set theme
- color
ChatUIKitTheme.instance.setColor( ChatUIKitColor.light(primaryHue: 203), );
- font
ChatUIKitTheme.instance.setFont( ChatUIKitFont.fontSize(ChatUIKitFontSize.normal), );