Add focus element to event cards
This commit is contained in:
parent
4bb389cec2
commit
9f3c38d1b5
@ -10,7 +10,8 @@ class TimelineEventCard extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MergeSemantics(
|
||||
return Focus(
|
||||
child: MergeSemantics(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(bottom: $styles.insets.sm),
|
||||
child: DefaultTextColor(
|
||||
@ -27,7 +28,8 @@ class TimelineEventCard extends StatelessWidget {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text('${year.abs()}', style: $styles.text.h3.copyWith(fontWeight: FontWeight.w400, height: 1)),
|
||||
Text('${year.abs()}',
|
||||
style: $styles.text.h3.copyWith(fontWeight: FontWeight.w400, height: 1)),
|
||||
Text(StringUtils.getYrSuffix(year), style: $styles.text.bodySmall),
|
||||
],
|
||||
),
|
||||
@ -40,7 +42,7 @@ class TimelineEventCard extends StatelessWidget {
|
||||
|
||||
/// Text content
|
||||
Expanded(
|
||||
child: Focus(child: Text(text, style: $styles.text.body)),
|
||||
child: Text(text, style: $styles.text.body),
|
||||
),
|
||||
],
|
||||
),
|
||||
@ -48,6 +50,7 @@ class TimelineEventCard extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user