poem_user_audio.dart
1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:Parlando/extension/int_extension.dart';
class PoemUserAudio extends StatelessWidget {
const PoemUserAudio({
Key? key,
this.audio, //TODO 传入数据
this.desc,
this.poemPanelHeight = 0,
}) : super(key: key);
final List<Map<String, String>>? audio;
final String? desc;
final double poemPanelHeight;
@override
Widget build(BuildContext context) {
return Container(
padding: EdgeInsets.symmetric(vertical: 5.px, horizontal: 10.px),
width: double.infinity,
child: Column(
children: <Widget>[
ListTile(
title: Text(
desc ?? "一大波用户朗读录制提交了“临境”",
style: TextStyle(color: Colors.black54, fontSize: 15.px),
),
),
SizedBox(
width: double.infinity,
height: 200.px - poemPanelHeight,
child: ListView.builder(
itemBuilder: (BuildContext context, int index) {
return Wrap(
spacing: 5.px,
crossAxisAlignment: WrapCrossAlignment.center,
children: [
Icon(
Icons.play_circle_outline,
size: 16.px,
color: Colors.black45,
),
const Text(
"普通话",
style: TextStyle(color: Colors.black45, fontSize: 16.0),
)
],
);
}),
),
],
),
);
}
}