fix id style and connect black theme text color

This commit is contained in:
rustdesk
2022-09-27 19:42:05 +08:00
parent 0eaa7d167e
commit 5e26d96a56
4 changed files with 11 additions and 6 deletions

View File

@@ -73,10 +73,10 @@ class _ButtonState extends State<Button> {
),
style: TextStyle(
fontSize: widget.textSize ?? 12.0,
color: pressed.value || !widget.isOutline
? Theme.of(context).backgroundColor
: widget.textColor ??
Theme.of(context).textTheme.titleLarge?.color),
color: widget.isOutline
? widget.textColor ??
Theme.of(context).textTheme.titleLarge?.color
: Colors.white),
).marginSymmetric(horizontal: 12),
)),
));