chat_uikit_theme

Getting Started

  1. If you want to use a theme, you need to implement ChatUIKitThemeMixin
class _NextWidgetState extends State<NextWidget> with ChatUIKitThemeMixin {}
  1. 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;
}
  1. Set theme
    1. color
    ChatUIKitTheme.instance.setColor(
        ChatUIKitColor.light(primaryHue: 203),
    );
    
    1. font
    ChatUIKitTheme.instance.setFont(
        ChatUIKitFont.fontSize(ChatUIKitFontSize.normal),
    );