您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

78 行
2.5 KiB

  1. // recording_details.dart
  2. import 'package:flutter/material.dart';
  3. import 'package:michele_s_application8/widgets/custom_button.dart';
  4. class RecordingDetails extends StatelessWidget {
  5. final String recordingDetails;
  6. final String duration;
  7. final String title;
  8. final String presenterName;
  9. final VoidCallback onStop;
  10. RecordingDetails({
  11. required this.recordingDetails,
  12. required this.duration,
  13. required this.title,
  14. required this.presenterName,
  15. required this.onStop,
  16. });
  17. @override
  18. Widget build(BuildContext context) {
  19. return Expanded(
  20. child: Center(
  21. child: Column(
  22. mainAxisSize: MainAxisSize.min, // Minimize the column size to its content
  23. children: [
  24. Container(
  25. padding: EdgeInsets.all(40), // Increase the padding to increase the size of the Container
  26. decoration: BoxDecoration(
  27. color: Colors.white, // Change this to your preferred color
  28. borderRadius: BorderRadius.circular(15),
  29. boxShadow: [
  30. BoxShadow(
  31. color: Colors.grey.withOpacity(0.5),
  32. spreadRadius: 5,
  33. blurRadius: 7,
  34. offset: Offset(0, 3), // changes position of shadow
  35. ),
  36. ],
  37. ),
  38. child: Column(
  39. children: [
  40. Text(
  41. recordingDetails,
  42. style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold, color: Colors.black),
  43. ),
  44. SizedBox(height: 10),
  45. Text(
  46. 'Durata: $duration',
  47. style: TextStyle(fontSize: 20, color: Colors.black),
  48. ),
  49. SizedBox(height: 10),
  50. Text(
  51. 'Titolo: $title',
  52. style: TextStyle(fontSize: 20, color: Colors.black),
  53. ),
  54. SizedBox(height: 10),
  55. Text(
  56. 'Nome del relatore: $presenterName',
  57. style: TextStyle(fontSize: 20, color: Colors.black),
  58. ),
  59. ],
  60. ),
  61. ),
  62. CustomButton(
  63. text: "Interrompi la registrazione",
  64. margin: EdgeInsets.fromLTRB(80, 10, 80, 10),
  65. variant: ButtonVariant.OutlineBlack9003f,
  66. padding: ButtonPadding.PaddingAll15,
  67. onTap: onStop,
  68. ),
  69. ],
  70. ),
  71. ),
  72. );
  73. }
  74. }