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