Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bruig: Replace newlines with md acceptable ones #113

Merged
merged 1 commit into from Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions bruig/flutterui/bruig/lib/components/active_chat.dart
Expand Up @@ -265,11 +265,11 @@ class _ReceivedSentPMState extends State<ReceivedSentPM> {
var date = formatter.format(now);

var msg = "$prefix${widget.evnt.event.msg}$suffix";

msg = msg.replaceAll("\n",
" \n"); // Replace newlines with <space space newline> for proper md render
var theme = Theme.of(context);
var bgColor = theme.backgroundColor; // CHAT BUBBLE COLOR
var darkTextColor = theme.indicatorColor; // CHAT BUBBLE BORDER COLOR
var textColor = theme.focusColor; // MESSAGE TEXT COLOR
var bgColor = theme.backgroundColor;
var darkTextColor = theme.indicatorColor;
var hightLightTextColor = theme.dividerColor; // NAME TEXT COLOR
var avatarColor = colorFromNick(widget.nick);
var avatarTextColor =
Expand Down
1 change: 0 additions & 1 deletion bruig/flutterui/bruig/lib/components/md_elements.dart
Expand Up @@ -274,7 +274,6 @@ class MarkdownArea extends StatelessWidget {
styleSheet: MarkdownStyleSheet(
p: TextStyle(
color: textColor,
fontSize: screenWidth * 0.02,
fontWeight: FontWeight.w300,
letterSpacing: 0.44),
h1: TextStyle(color: textColor),
Expand Down