Reduce size of collapsing pull quote text
This commit is contained in:
parent
7ff835c4a0
commit
0b6aeeaa62
@ -85,7 +85,7 @@ class _Text {
|
||||
late final TextStyle bodySmall = copy(contentFont, sizePx: 14, heightPx: 23);
|
||||
late final TextStyle bodySmallBold = copy(contentFont, sizePx: 14, heightPx: 23, weight: FontWeight.w600);
|
||||
|
||||
late final TextStyle quote1 = copy(quoteFont, sizePx: 36, heightPx: 40, weight: FontWeight.w600, spacingPc: -3);
|
||||
late final TextStyle quote1 = copy(quoteFont, sizePx: 32, heightPx: 40, weight: FontWeight.w600, spacingPc: -3);
|
||||
late final TextStyle quote2 = copy(quoteFont, sizePx: 21, heightPx: 32, weight: FontWeight.w400);
|
||||
late final TextStyle quote2Sub = copy(body, sizePx: 16, heightPx: 40, weight: FontWeight.w400);
|
||||
|
||||
|
@ -16,11 +16,7 @@ class _CollapsingPullQuoteImage extends StatelessWidget {
|
||||
/// A single piece of quote text, this widget has one on top, and one on bottom
|
||||
Widget buildText(String value, double collapseAmt, {required bool top, bool isAuthor = false}) {
|
||||
var quoteStyle = $styles.text.quote1;
|
||||
var quoteSize = quoteStyle.fontSize;
|
||||
quoteStyle = quoteStyle.copyWith(
|
||||
color: $styles.colors.caption,
|
||||
fontSize: (quoteSize ??= 36), //dynamic font size for more consistent quote layout
|
||||
);
|
||||
quoteStyle = quoteStyle.copyWith(color: $styles.colors.caption);
|
||||
if (isAuthor) {
|
||||
quoteStyle = quoteStyle.copyWith(fontSize: 20, fontWeight: FontWeight.w600);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user