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"
|
"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")];
|
const List<Locale> availableLocales = [Locale("en"), Locale("de")];
|
||||||
|
|
||||||
Settings? settings;
|
Settings? settings;
|
||||||
|
|
|
@ -36,6 +36,9 @@ class ImageAttachmentDisplay extends StatelessWidget {
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
fit: BoxFit.fitWidth,
|
fit: BoxFit.fitWidth,
|
||||||
),
|
),
|
||||||
|
const SizedBox(
|
||||||
|
height: 4,
|
||||||
|
),
|
||||||
AltText(text: model.description.toString())
|
AltText(text: model.description.toString())
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,12 +38,20 @@ class _PostState extends State<Post> {
|
||||||
class DisplayName extends StatelessWidget {
|
class DisplayName extends StatelessWidget {
|
||||||
const DisplayName({
|
const DisplayName({
|
||||||
required this.account,
|
required this.account,
|
||||||
|
this.isReblog = false,
|
||||||
Key? key,
|
Key? key,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
final AccountModel account;
|
final AccountModel account;
|
||||||
|
final isReblog;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
TextStyle? usernameStyle;
|
||||||
|
if (isReblog) {
|
||||||
|
usernameStyle = Theme.of(context).textTheme.bodyMedium;
|
||||||
|
} else {
|
||||||
|
usernameStyle = Theme.of(context).textTheme.displaySmall;
|
||||||
|
}
|
||||||
return Row(
|
return Row(
|
||||||
children: [
|
children: [
|
||||||
ClipRRect(
|
ClipRRect(
|
||||||
|
@ -59,7 +67,7 @@ class DisplayName extends StatelessWidget {
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
account.displayName,
|
account.displayName,
|
||||||
style: Theme.of(context).textTheme.displaySmall,
|
style: usernameStyle,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
account.acct,
|
account.acct,
|
||||||
|
@ -96,7 +104,10 @@ class RebloggedBy extends StatelessWidget {
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 8,
|
height: 8,
|
||||||
),
|
),
|
||||||
DisplayName(account: account!),
|
DisplayName(
|
||||||
|
account: account!,
|
||||||
|
isReblog: true,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@ -187,6 +198,10 @@ class _PostBodyState extends State<PostBody> {
|
||||||
label: Text(cwButtonText),
|
label: Text(cwButtonText),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
const WidgetSpan(
|
||||||
|
child: SizedBox(
|
||||||
|
width: 8,
|
||||||
|
)),
|
||||||
TextSpan(text: widget.spoilerText),
|
TextSpan(text: widget.spoilerText),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
@ -106,6 +106,14 @@ ThemeData getTheme(CustomColors colors) {
|
||||||
scrollbarTheme: ScrollbarThemeData(
|
scrollbarTheme: ScrollbarThemeData(
|
||||||
thumbColor: MaterialStateProperty.all(colors.hintColor),
|
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