dartboard_resume/lib/widgets/footnote.dart
2024-09-10 15:09:15 -06:00

30 lines
631 B
Dart

import 'package:pdf/pdf.dart';
import 'package:pdf/widgets.dart';
class Footnote extends StatelessWidget {
Footnote({required this.number, required this.url, required this.style});
final String url;
final int number;
final TextStyle style;
@override
Widget build(Context context) {
return Row(
children: [
UrlLink(
destination: url,
child: Text(
'[$number]',
style: style.copyWith(color: PdfColors.blue, fontSize: 8),
),
),
Text(
' $url',
style: style.copyWith(fontSize: 8),
),
],
);
}
}