fix: custom headers with sockets

This commit is contained in:
cogwheel0
2025-09-08 13:18:38 +05:30
parent 3ba3e34938
commit 1df69b0b65
3 changed files with 57 additions and 8 deletions

View File

@@ -562,6 +562,10 @@ class ConduitBadge extends StatelessWidget {
final Color? backgroundColor;
final Color? textColor;
final bool isCompact;
// Optional text behavior controls for truncation/wrapping
final int? maxLines;
final TextOverflow? overflow;
final bool? softWrap;
const ConduitBadge({
super.key,
@@ -569,6 +573,9 @@ class ConduitBadge extends StatelessWidget {
this.backgroundColor,
this.textColor,
this.isCompact = false,
this.maxLines,
this.overflow,
this.softWrap,
});
@override
@@ -592,6 +599,9 @@ class ConduitBadge extends StatelessWidget {
color: textColor ?? context.conduitTheme.buttonPrimary,
fontWeight: FontWeight.w600,
),
maxLines: maxLines,
overflow: overflow,
softWrap: softWrap,
),
);
}