chat_uikit_theme 1.0.0 chat_uikit_theme: ^1.0.0 copied to clipboard
chat uikit theme.
chat_uikit_theme #
Getting Started #
- If you want to use a theme, you need to implement
ChatUIKitThemeState
class _NextWidgetState extends State<NextWidget> with ChatUIKitThemeState {}
- 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), );