30 lines
631 B
Dart
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),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|