30 lines
918 B
Dart
30 lines
918 B
Dart
|
import 'package:dartboard_resume/models/dartboard_data.dart';
|
||
|
import 'package:pdf/widgets.dart';
|
||
|
|
||
|
class DartboardFooter extends StatelessWidget {
|
||
|
DartboardFooter({required this.dartboardData, required this.renderNs});
|
||
|
final int renderNs;
|
||
|
final DartboardData dartboardData;
|
||
|
|
||
|
@override
|
||
|
Widget build(Context context) {
|
||
|
final double renderTimeMs = renderNs.toDouble() / 1000.0;
|
||
|
return Padding(
|
||
|
padding: const EdgeInsets.only(top: 8.0),
|
||
|
child: Row(
|
||
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||
|
children: [
|
||
|
Text(
|
||
|
'This resume was generated with DartBoard Resume',
|
||
|
style: dartboardData.defaultTextStyle.copyWith(fontSize: 10),
|
||
|
),
|
||
|
Text(
|
||
|
'Rendered in ${renderTimeMs.toStringAsFixed(2)}ms',
|
||
|
style: dartboardData.defaultTextStyle.copyWith(fontSize: 10),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|