getPageFooterWidget method
Implementation
@protected
Widget getPageFooterWidget(BuildContext context) {
bool isSmallScreen = MediaQuery.of(context).size.width < 600;
return Container(
padding: isSmallScreen ? const EdgeInsets.all(10) : const EdgeInsets.all(20),
color: AppTheme.accentTextColor,
child: Wrap(
alignment: isSmallScreen ? WrapAlignment.center : WrapAlignment.spaceBetween,
crossAxisAlignment: WrapCrossAlignment.center,
children: [
Text(
'© ${DateTime.now().year} ${env['APP_AUTHOR'] ?? 'Anonymous'}',
style: const TextStyle(color: Colors.white, fontSize: 14),
),
const SizedBox(height: 10),
Row(
mainAxisSize: MainAxisSize.min, // Ensures the row takes minimum space required
children: [
TextButton(
child: const Text('Terms of Service', style: TextStyle(color: Colors.white)),
onPressed: () {},
),
TextButton(
child: const Text('Privacy Policy', style: TextStyle(color: Colors.white)),
onPressed: () {},
),
],
),
]
),
);
}