From 2c2e66d842c6dd3c3faa122ccfafddde60661aad Mon Sep 17 00:00:00 2001 From: zoe Date: Sat, 27 Aug 2022 00:29:36 +0200 Subject: [PATCH] round popups --- lib/pages/notifications/single_notif.dart | 13 ++++++++++--- lib/partials/media_attachment.dart | 4 +++- lib/themes/themes.dart | 3 ++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/lib/pages/notifications/single_notif.dart b/lib/pages/notifications/single_notif.dart index aa5a052..e18bc18 100644 --- a/lib/pages/notifications/single_notif.dart +++ b/lib/pages/notifications/single_notif.dart @@ -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) + ], + ), ), ], ), diff --git a/lib/partials/media_attachment.dart b/lib/partials/media_attachment.dart index dfdee10..53097eb 100644 --- a/lib/partials/media_attachment.dart +++ b/lib/partials/media_attachment.dart @@ -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!), ]); } } diff --git a/lib/themes/themes.dart b/lib/themes/themes.dart index 7c138c7..10409df 100644 --- a/lib/themes/themes.dart +++ b/lib/themes/themes.dart @@ -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, ), ),