PapercupsStyle constructor
const
PapercupsStyle({
- Color? primaryColor = const Color(0xFF1890FF),
- Gradient? primaryGradient,
- Color? backgroundColor,
- TextStyle? titleStyle,
- TextAlign? titleAlign = TextAlign.left,
- TextStyle? subtitleStyle,
- double? headerHeight,
- EdgeInsetsGeometry headerPadding = const EdgeInsets.only(top: 16, right: 20, left: 20, bottom: 12),
- Widget? noConnectionIcon,
- TextStyle? noConnectionTextStyle,
- InputDecoration? requireEmailUpfrontInputDecoration,
- Brightness? requireEmailUpfrontKeyboardAppearance = Brightness.light,
- TextStyle? requireEmailUpfrontInputHintStyle = const TextStyle(fontSize: 14),
- TextStyle? requireEmailUpfrontInputTextStyle,
- BoxDecoration? floatingSendMessageBoxDecoration,
- BoxDecoration? sendMessageBoxDecoration,
- Brightness? sendMessageKeyboardAppearance = Brightness.light,
- InputDecoration? sendMessagePlaceholderInputDecoration,
- TextStyle? sendMessagePlaceholderTextStyle = const TextStyle(fontSize: 14),
- TextStyle? sendMessageInputTextStyle,
- BoxDecoration? botBubbleBoxDecoration,
- TextStyle? botBubbleTextStyle,
- BoxDecoration? userBubbleBoxDecoration,
- BoxDecoration? botAttachmentBoxDecoration,
- TextStyle? botAttachmentTextStyle,
- TextStyle? botBubbleUsernameTextStyle,
- TextStyle? userBubbleTextStyle,
- BoxDecoration? userAttachmentBoxDecoration,
- TextStyle? userAttachmentTextStyle,
- TextStyle? userBubbleSentAtTextStyle,
- TextStyle? chatBubbleTimeTextStyle,
- TextStyle? chatBubbleFullDateTextStyle,
- TextStyle? chatUploadingAlertTextStyle,
- Color? chatUploadingAlertBackgroundColor,
- TextStyle? chatUploadErrorAlertTextStyle,
- Color? chatUploadErrorAlertBackgroundColor,
- TextStyle? chatNoConnectionAlertTextStyle,
- Color? chatNoConnectionAlertBackgroundColor,
- TextStyle? chatCopiedTextAlertTextStyle,
- Color? chatCopiedTextAlertBackgroundColor,
Implementation
const PapercupsStyle({
this.primaryColor = const Color(0xFF1890FF),
this.primaryGradient,
this.backgroundColor,
this.titleStyle,
this.titleAlign = TextAlign.left,
this.subtitleStyle,
this.headerHeight,
this.headerPadding =
const EdgeInsets.only(top: 16, right: 20, left: 20, bottom: 12),
this.noConnectionIcon,
this.noConnectionTextStyle,
this.requireEmailUpfrontInputDecoration,
this.requireEmailUpfrontKeyboardAppearance = Brightness.light,
this.requireEmailUpfrontInputHintStyle = const TextStyle(fontSize: 14),
this.requireEmailUpfrontInputTextStyle,
this.floatingSendMessageBoxDecoration,
this.sendMessageBoxDecoration,
this.sendMessageKeyboardAppearance = Brightness.light,
this.sendMessagePlaceholderInputDecoration,
this.sendMessagePlaceholderTextStyle = const TextStyle(fontSize: 14),
this.sendMessageInputTextStyle,
this.botBubbleBoxDecoration,
this.botBubbleTextStyle,
this.userBubbleBoxDecoration,
this.botAttachmentBoxDecoration,
this.botAttachmentTextStyle,
this.botBubbleUsernameTextStyle,
this.userBubbleTextStyle,
this.userAttachmentBoxDecoration,
this.userAttachmentTextStyle,
this.userBubbleSentAtTextStyle,
this.chatBubbleTimeTextStyle,
this.chatBubbleFullDateTextStyle,
this.chatUploadingAlertTextStyle,
this.chatUploadingAlertBackgroundColor,
this.chatUploadErrorAlertTextStyle,
this.chatUploadErrorAlertBackgroundColor,
this.chatNoConnectionAlertTextStyle,
this.chatNoConnectionAlertBackgroundColor,
this.chatCopiedTextAlertTextStyle,
this.chatCopiedTextAlertBackgroundColor,
});