feat: share stream

closes #33
This commit is contained in:
2025-05-19 12:42:35 +01:00
parent 86a8181aea
commit a500e0b3da
8 changed files with 78 additions and 21 deletions

View File

@ -27,14 +27,22 @@ class BasicButton extends StatelessWidget {
void Function()? onTap,
double? fontSize,
bool? disabled,
Icon? icon,
}) {
return BasicButton(
Text(
text,
style: TextStyle(
color: Color.fromARGB(255, 255, 255, 255),
fontSize: fontSize,
fontWeight: FontWeight.bold,
Text.rich(
TextSpan(
style: TextStyle(
color: Color.fromARGB(255, 255, 255, 255),
fontSize: fontSize,
fontWeight: FontWeight.bold,
),
children: [
if (icon != null)
WidgetSpan(child: icon, alignment: PlaceholderAlignment.middle),
if (icon != null) TextSpan(text: " "),
TextSpan(text: text),
],
),
),
disabled: disabled,