PapercupsStyle constructor

const PapercupsStyle({
  1. Color? primaryColor = const Color(0xFF1890FF),
  2. Gradient? primaryGradient,
  3. Color? backgroundColor,
  4. TextStyle? titleStyle = const TextStyle(color: Colors.white, fontSize: 21, fontWeight: FontWeight.w600),
  5. TextAlign? titleAlign = TextAlign.left,
  6. TextStyle? subtitleStyle,
  7. double? headerHeight,
  8. EdgeInsetsGeometry headerPadding = const EdgeInsets.only(top: 16, right: 20, left: 20, bottom: 12),
  9. Widget? noConnectionIcon,
  10. TextStyle? noConnectionTextStyle,
  11. InputDecoration? requireEmailUpfrontInputDecoration,
  12. Brightness? requireEmailUpfrontKeyboardAppearance = Brightness.light,
  13. TextStyle? requireEmailUpfrontInputHintStyle = const TextStyle(fontSize: 14),
  14. TextStyle? requireEmailUpfrontInputTextStyle,
  15. BoxDecoration? floatingSendMessageBoxDecoration,
  16. BoxDecoration? sendMessageBoxDecoration,
  17. Brightness? sendMessageKeyboardAppearance = Brightness.light,
  18. InputDecoration? sendMessagePlaceholderInputDecoration,
  19. TextStyle? sendMessagePlaceholderTextStyle = const TextStyle(fontSize: 14),
  20. TextStyle? sendMessageInputTextStyle,
  21. BoxDecoration? botBubbleBoxDecoration,
  22. TextStyle? botBubbleTextStyle,
  23. BoxDecoration? userBubbleBoxDecoration,
  24. BoxDecoration? botAttachmentBoxDecoration,
  25. TextStyle? botAttachmentTextStyle,
  26. TextStyle? botBubbleUsernameTextStyle,
  27. TextStyle? userBubbleTextStyle,
  28. BoxDecoration? userAttachmentBoxDecoration,
  29. TextStyle? userAttachmentTextStyle,
  30. TextStyle? userBubbleSentAtTextStyle,
  31. TextStyle? chatBubbleTimeTextStyle,
  32. TextStyle? chatBubbleFullDateTextStyle,
  33. TextStyle? chatUploadingAlertTextStyle,
  34. Color? chatUploadingAlertBackgroundColor,
  35. TextStyle? chatUploadErrorAlertTextStyle,
  36. Color? chatUploadErrorAlertBackgroundColor,
  37. TextStyle? chatNoConnectionAlertTextStyle,
  38. Color? chatNoConnectionAlertBackgroundColor,
  39. TextStyle? chatCopiedTextAlertTextStyle,
  40. Color? chatCopiedTextAlertBackgroundColor,
})

Implementation

const PapercupsStyle({
  this.primaryColor = const Color(0xFF1890FF),
  this.primaryGradient,
  this.backgroundColor,
  this.titleStyle = const TextStyle(
    color: Colors.white,
    fontSize: 21,
    fontWeight: FontWeight.w600,
  ),
  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,
});