diff --git a/lib/global.dart b/lib/global.dart index 15b1d2f..1b73d48 100644 --- a/lib/global.dart +++ b/lib/global.dart @@ -13,7 +13,16 @@ const Map defaultHeaders = { "Content-Type": "application/json" }; -const List bad = ["gab.com", "spinster.xyz", "truthsocial.com"]; +const List bad = [ + "gab.com", + "spinster.xyz", + "truthsocial.com", + "poa.st", + "gleasonator.com", + "shitposter.club", + "freespeechextremist.com" +]; + const List availableLocales = [Locale("en"), Locale("de")]; Settings? settings; diff --git a/lib/partials/media_attachment.dart b/lib/partials/media_attachment.dart index 7969213..dfdee10 100644 --- a/lib/partials/media_attachment.dart +++ b/lib/partials/media_attachment.dart @@ -36,6 +36,9 @@ class ImageAttachmentDisplay extends StatelessWidget { width: double.infinity, fit: BoxFit.fitWidth, ), + const SizedBox( + height: 4, + ), AltText(text: model.description.toString()) ]); } diff --git a/lib/partials/post.dart b/lib/partials/post.dart index 882ce93..031d084 100644 --- a/lib/partials/post.dart +++ b/lib/partials/post.dart @@ -38,12 +38,20 @@ class _PostState extends State { class DisplayName extends StatelessWidget { const DisplayName({ required this.account, + this.isReblog = false, Key? key, }) : super(key: key); final AccountModel account; + final isReblog; @override Widget build(BuildContext context) { + TextStyle? usernameStyle; + if (isReblog) { + usernameStyle = Theme.of(context).textTheme.bodyMedium; + } else { + usernameStyle = Theme.of(context).textTheme.displaySmall; + } return Row( children: [ ClipRRect( @@ -59,7 +67,7 @@ class DisplayName extends StatelessWidget { children: [ Text( account.displayName, - style: Theme.of(context).textTheme.displaySmall, + style: usernameStyle, ), Text( account.acct, @@ -96,7 +104,10 @@ class RebloggedBy extends StatelessWidget { const SizedBox( height: 8, ), - DisplayName(account: account!), + DisplayName( + account: account!, + isReblog: true, + ), ], ); } else { @@ -187,6 +198,10 @@ class _PostBodyState extends State { label: Text(cwButtonText), ), ), + const WidgetSpan( + child: SizedBox( + width: 8, + )), TextSpan(text: widget.spoilerText), ], ), diff --git a/lib/themes/themes.dart b/lib/themes/themes.dart index 22f841b..cd1602e 100644 --- a/lib/themes/themes.dart +++ b/lib/themes/themes.dart @@ -106,6 +106,14 @@ ThemeData getTheme(CustomColors colors) { scrollbarTheme: ScrollbarThemeData( thumbColor: MaterialStateProperty.all(colors.hintColor), ), + sliderTheme: SliderThemeData( + valueIndicatorColor: colors.colorScheme.primary, + valueIndicatorTextStyle: TextStyle( + color: colors.colorScheme.onPrimary, + fontSize: 18, + fontWeight: FontWeight.w700, + ), + ), ); }