Refactors
This commit is contained in:
@@ -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),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user