about_screen.dart 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_svg/flutter_svg.dart';
  3. class AboutScreen extends StatelessWidget {
  4. const AboutScreen({super.key});
  5. @override
  6. Widget build(BuildContext context) {
  7. return Scaffold(
  8. appBar: AppBar(
  9. title: const Text('About'),
  10. ),
  11. body: Center(
  12. child: Padding(
  13. padding: const EdgeInsets.all(20.0),
  14. child: Column(
  15. mainAxisAlignment: MainAxisAlignment.center,
  16. children: [
  17. SvgPicture.asset(
  18. 'assets/logo.svg', // Adjust path to your SVG logo
  19. width: 120,
  20. height: 120,
  21. ),
  22. const SizedBox(height: 20),
  23. const Text(
  24. 'Sun Crypt',
  25. style: TextStyle(
  26. fontSize: 24,
  27. fontWeight: FontWeight.bold,
  28. ),
  29. ),
  30. const SizedBox(height: 10),
  31. const Text(
  32. 'Version 1.0',
  33. style: TextStyle(
  34. fontSize: 18,
  35. ),
  36. ),
  37. const SizedBox(height: 20),
  38. const Text(
  39. "Sun Crypt is a cross-platform application that allows users to encrypt and decrypt files using a password. The app provides a simple interface for selecting files, entering a password, and saving the encrypted or decrypted files to a chosen directory.",
  40. textAlign: TextAlign.center,
  41. style: TextStyle(
  42. fontSize: 16,
  43. ),
  44. ),
  45. const SizedBox(height: 20),
  46. const Text(
  47. 'Developed by Ali Miracle',
  48. style: TextStyle(
  49. fontSize: 18,
  50. ),
  51. ),
  52. const SizedBox(height: 10),
  53. const Text(
  54. 'Contact: alimiracle@riseup.net',
  55. style: TextStyle(
  56. fontSize: 16,
  57. color: Colors.blue,
  58. ),
  59. ),
  60. const SizedBox(height: 30),
  61. ElevatedButton(
  62. onPressed: () {
  63. Navigator.pop(context);
  64. },
  65. child: const Text('Back to Home'),
  66. ),
  67. ],
  68. ),
  69. ),
  70. ),
  71. );
  72. }
  73. }