backup_info_card.dart 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import 'package:flutter/material.dart';
  2. class BackupInfoCard extends StatelessWidget {
  3. final String title;
  4. final String subtitle;
  5. final String info;
  6. const BackupInfoCard({Key? key, required this.title, required this.subtitle, required this.info}) : super(key: key);
  7. @override
  8. Widget build(BuildContext context) {
  9. return Card(
  10. shape: RoundedRectangleBorder(
  11. borderRadius: BorderRadius.circular(5), // if you need this
  12. side: const BorderSide(
  13. color: Colors.black12,
  14. width: 1,
  15. ),
  16. ),
  17. elevation: 0,
  18. borderOnForeground: false,
  19. child: ListTile(
  20. minVerticalPadding: 15,
  21. isThreeLine: true,
  22. title: Text(
  23. title,
  24. style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 20),
  25. ),
  26. subtitle: Padding(
  27. padding: const EdgeInsets.only(top: 8.0),
  28. child: Text(
  29. subtitle,
  30. style: const TextStyle(color: Color(0xFF808080), fontSize: 12),
  31. ),
  32. ),
  33. trailing: Column(
  34. mainAxisAlignment: MainAxisAlignment.center,
  35. children: [
  36. Text(
  37. info,
  38. style: const TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
  39. ),
  40. const Text("assets"),
  41. ],
  42. ),
  43. ),
  44. );
  45. }
  46. }