30 lines
987 B
Dart
Raw Permalink Normal View History

2025-07-23 15:02:40 +04:00
import 'package:flutter/material.dart';
class InfoDialog extends StatelessWidget {
const InfoDialog({super.key});
@override
Widget build(BuildContext context) {
return AlertDialog(
title: const Text('App Info'),
content: const SingleChildScrollView(
child: Text(
'How to use the Attendance App:\n\n'
'• Tap the + button to mark your attendance for the day.\n'
'• Use the calendar to view and edit past attendance.\n'
'• Use the Working Hour option in settings to set your daily work hours.\n'
'• Use the Correction option to request corrections for any day.\n'
'• View your attendance history and statistics from the respective icons in the top bar.\n\n'
'For any issues, contact support.',
),
),
actions: [
TextButton(
onPressed: () => Navigator.of(context).pop(),
child: const Text('Close'),
),
],
);
}
}