Polish editorial view

This commit is contained in:
Shawn 2022-11-14 15:53:48 -07:00
parent 667108943f
commit 1ab04c0043
2 changed files with 26 additions and 23 deletions

View File

@ -8,31 +8,34 @@ class _LargeSimpleQuote extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MergeSemantics( return MergeSemantics(
child: Padding( child: CenteredBox(
width: 300,
padding: EdgeInsets.symmetric(horizontal: $styles.insets.lg, vertical: $styles.insets.xl), padding: EdgeInsets.symmetric(horizontal: $styles.insets.lg, vertical: $styles.insets.xl),
child: Column(children: [ child: Column(
FractionalTranslation( children: [
translation: Offset(0, .5), FractionalTranslation(
child: Text( translation: Offset(0, .5),
'', child: Text(
style: $styles.text.quote1.copyWith( '',
color: $styles.colors.accent1, style: $styles.text.quote1.copyWith(
fontSize: 90 * $styles.scale, color: $styles.colors.accent1,
height: .7, fontSize: 90 * $styles.scale,
height: .7,
),
), ),
), ),
), Text(
Text( text,
text, style: $styles.text.quote2,
style: $styles.text.quote2, textAlign: TextAlign.center,
textAlign: TextAlign.center, ),
), Gap($styles.insets.md),
Gap($styles.insets.md), Text(
Text( '- $author',
'- $author', style: $styles.text.quote2Sub.copyWith(color: $styles.colors.accent1),
style: $styles.text.quote2Sub.copyWith(color: $styles.colors.accent1), ),
), ],
]), ),
), ),
); );
} }

View File

@ -40,7 +40,7 @@ class HomeMenu extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final double gridWidth = (context.heightPx / 2).clamp(200, 450); final double gridWidth = (context.heightPx / 2).clamp(200, 350);
return Stack( return Stack(
children: [ children: [
/// Backdrop / Underlay /// Backdrop / Underlay