import 'package:dartboard_resume/models/dartboard_data.dart'; import 'package:dartboard_resume/models/dartboard_misc.dart'; import 'package:dartboard_resume/widgets/annotated_text.dart'; import 'package:pdf/pdf.dart'; import 'package:pdf/widgets.dart'; class DartboardMiscEntry extends StatelessWidget { DartboardMiscEntry({required this.dartboardData, required this.misc}); final DartboardData dartboardData; final DartboardMisc misc; @override Widget build(Context context) { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ ...misc.attributes.map( (a) => Padding( padding: const EdgeInsets.only(left: 8.0, bottom: 4.0), child: AnnotatedText( stringSections: a.toTextLinkList(), bulletString: dartboardData.dartboardTheme.bulletPoint, style: dartboardData.defaultTextStyle.apply( color: const PdfColorGrey(0.55), ), ), ), ), SizedBox(height: 12), ], ); } }