Refactors

This commit is contained in:
2024-09-10 15:09:15 -06:00
parent aa71e8a9e6
commit fe40731e09
19 changed files with 791 additions and 708 deletions
+29
View File
@@ -0,0 +1,29 @@
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),
),
],
);
}
}