Mobile. Share Screen. Server page. Make card title follow theme

This commit is contained in:
grummbeer 2023-03-09 12:09:45 +01:00
parent 4d95ada300
commit b86f27f8bd

View File

@ -482,11 +482,12 @@ class PaddingCard extends StatelessWidget {
child: titleIcon)
: const SizedBox.shrink(),
Expanded(
child: Text(
title!,
style: const TextStyle(
fontSize: 18, fontWeight: FontWeight.bold),
),
child: Text(title!,
style: Theme.of(context)
.textTheme
.titleLarge
// @todo once the font weight is defined in theme, remove it here to be equal insted of individual
?.merge(TextStyle(fontWeight: FontWeight.bold))),
)
],
)));