round popups

This commit is contained in:
zoe 2022-08-27 00:29:36 +02:00
parent 1085653d94
commit 2c2e66d842
3 changed files with 15 additions and 5 deletions

View File

@ -47,9 +47,16 @@ class SingleNotif extends StatelessWidget {
model.account.displayName,
style: Theme.of(context).textTheme.displaySmall,
),
SelectableText(
"${model.account.acct} ${model.type.actionName}",
style: Theme.of(context).textTheme.bodyMedium,
SelectableText.rich(
TextSpan(
text: "${model.account.acct} ",
style: Theme.of(context).textTheme.bodySmall,
children: [
TextSpan(
text: model.type.actionName,
style: Theme.of(context).textTheme.bodyMedium)
],
),
),
],
),

View File

@ -39,7 +39,9 @@ class ImageAttachmentDisplay extends StatelessWidget {
const SizedBox(
height: 4,
),
AltText(text: model.description.toString())
model.description == null
? const SizedBox()
: AltText(text: model.description!),
]);
}
}

View File

@ -18,7 +18,7 @@ ThemeData getTheme(CustomColors colors) {
),
bodySmall: TextStyle(
color: colors.colorScheme.secondary,
fontSize: 14,
fontSize: 18,
),
displayLarge: TextStyle(
color: colors.colorScheme.onSurface,
@ -121,6 +121,7 @@ ThemeData getTheme(CustomColors colors) {
fontWeight: FontWeight.w700,
),
decoration: BoxDecoration(
borderRadius: const BorderRadius.all(Radius.circular(8)),
color: colors.colorScheme.primary,
),
),