smaller reblog usernames
This commit is contained in:
parent
853ec95f37
commit
495dc1c29a
|
@ -13,7 +13,16 @@ const Map<String, String> defaultHeaders = {
|
|||
"Content-Type": "application/json"
|
||||
};
|
||||
|
||||
const List<String> bad = ["gab.com", "spinster.xyz", "truthsocial.com"];
|
||||
const List<String> bad = [
|
||||
"gab.com",
|
||||
"spinster.xyz",
|
||||
"truthsocial.com",
|
||||
"poa.st",
|
||||
"gleasonator.com",
|
||||
"shitposter.club",
|
||||
"freespeechextremist.com"
|
||||
];
|
||||
|
||||
const List<Locale> availableLocales = [Locale("en"), Locale("de")];
|
||||
|
||||
Settings? settings;
|
||||
|
|
|
@ -36,6 +36,9 @@ class ImageAttachmentDisplay extends StatelessWidget {
|
|||
width: double.infinity,
|
||||
fit: BoxFit.fitWidth,
|
||||
),
|
||||
const SizedBox(
|
||||
height: 4,
|
||||
),
|
||||
AltText(text: model.description.toString())
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -38,12 +38,20 @@ class _PostState extends State<Post> {
|
|||
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<PostBody> {
|
|||
label: Text(cwButtonText),
|
||||
),
|
||||
),
|
||||
const WidgetSpan(
|
||||
child: SizedBox(
|
||||
width: 8,
|
||||
)),
|
||||
TextSpan(text: widget.spoilerText),
|
||||
],
|
||||
),
|
||||
|
|
|
@ -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,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue