|
|
@ -1,4 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import '../../common_widget/app_data.dart';
|
|
|
|
import '../../common_widget/app_data.dart';
|
|
|
@ -13,20 +12,21 @@ List<T> flatten<T>(Iterable<Iterable<T>> iterable) {
|
|
|
|
|
|
|
|
|
|
|
|
class MyMusicView extends StatefulWidget {
|
|
|
|
class MyMusicView extends StatefulWidget {
|
|
|
|
final int? songlistIdd;
|
|
|
|
final int? songlistIdd;
|
|
|
|
|
|
|
|
|
|
|
|
const MyMusicView({Key? key, this.songlistIdd}) : super(key: key);
|
|
|
|
const MyMusicView({Key? key, this.songlistIdd}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
State<MyMusicView> createState() => _MyMusicViewState();
|
|
|
|
State<MyMusicView> createState() => _MyMusicViewState();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class _MyMusicViewState extends State<MyMusicView> {
|
|
|
|
class _MyMusicViewState extends State<MyMusicView> {
|
|
|
|
|
|
|
|
|
|
|
|
int songsNum = 0;
|
|
|
|
int songsNum = 0;
|
|
|
|
List songlistId =[];
|
|
|
|
List songlistId = [];
|
|
|
|
List musicDetail = [];
|
|
|
|
List musicDetail = [];
|
|
|
|
List name = [];
|
|
|
|
List name = [];
|
|
|
|
List coverPath = [];
|
|
|
|
List coverPath = [];
|
|
|
|
List musicPath = [];
|
|
|
|
List musicPath = [];
|
|
|
|
List singerName =[];
|
|
|
|
List singerName = [];
|
|
|
|
List uploadUserName = [];
|
|
|
|
List uploadUserName = [];
|
|
|
|
|
|
|
|
|
|
|
|
final listVM = Get.put(HomeViewModel());
|
|
|
|
final listVM = Get.put(HomeViewModel());
|
|
|
@ -34,7 +34,6 @@ class _MyMusicViewState extends State<MyMusicView> {
|
|
|
|
final List<bool> _mySongListSelections = List.generate(2, (index) => false);
|
|
|
|
final List<bool> _mySongListSelections = List.generate(2, (index) => false);
|
|
|
|
List<bool> _selectedItems = List.generate(10, (index) => false);
|
|
|
|
List<bool> _selectedItems = List.generate(10, (index) => false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//修改从这开始
|
|
|
|
//修改从这开始
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
@ -86,8 +85,8 @@ class _MyMusicViewState extends State<MyMusicView> {
|
|
|
|
print('Error fetching myworks data: $error');
|
|
|
|
print('Error fetching myworks data: $error');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//在这里结束
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//在这里结束
|
|
|
|
|
|
|
|
|
|
|
|
void _toggleSelectMode() {
|
|
|
|
void _toggleSelectMode() {
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
@ -110,21 +109,20 @@ class _MyMusicViewState extends State<MyMusicView> {
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
return AlertDialog(
|
|
|
|
return AlertDialog(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius:BorderRadius.circular(10),
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
title: Row(
|
|
|
|
title: Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
const Text("添加到",),
|
|
|
|
const Text(
|
|
|
|
|
|
|
|
"添加到",
|
|
|
|
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'(${_selectedItems.where((item) => item).length} 首)',
|
|
|
|
'(${_selectedItems.where((item) => item).length} 首)',
|
|
|
|
style: const TextStyle(
|
|
|
|
style: const TextStyle(color: Color(0xff429482), fontSize: 16),
|
|
|
|
color: Color(0xff429482),
|
|
|
|
|
|
|
|
fontSize: 16
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
content:SingleChildScrollView(
|
|
|
|
content: SingleChildScrollView(
|
|
|
|
physics: const BouncingScrollPhysics(),
|
|
|
|
physics: const BouncingScrollPhysics(),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
@ -151,8 +149,7 @@ class _MyMusicViewState extends State<MyMusicView> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
TextButton(
|
|
|
|
TextButton(
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {},
|
|
|
|
},
|
|
|
|
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
backgroundColor: const Color(0xff429482),
|
|
|
|
backgroundColor: const Color(0xff429482),
|
|
|
|
minimumSize: const Size(130, 50),
|
|
|
|
minimumSize: const Size(130, 50),
|
|
|
@ -192,7 +189,6 @@ class _MyMusicViewState extends State<MyMusicView> {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
@ -209,52 +205,54 @@ class _MyMusicViewState extends State<MyMusicView> {
|
|
|
|
centerTitle: true,
|
|
|
|
centerTitle: true,
|
|
|
|
elevation: 0,
|
|
|
|
elevation: 0,
|
|
|
|
leading: !_isSelectMode
|
|
|
|
leading: !_isSelectMode
|
|
|
|
?IconButton(
|
|
|
|
? IconButton(
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
Get.back(result: true);
|
|
|
|
Get.back(result: true);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
icon: Image.asset(
|
|
|
|
icon: Image.asset(
|
|
|
|
"assets/img/back.png",
|
|
|
|
"assets/img/back.png",
|
|
|
|
width: 25,
|
|
|
|
width: 25,
|
|
|
|
height: 25,
|
|
|
|
height: 25,
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: TextButton(
|
|
|
|
: TextButton(
|
|
|
|
onPressed: _selectAll,
|
|
|
|
onPressed: _selectAll,
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
foregroundColor: Colors.black,
|
|
|
|
foregroundColor: Colors.black,
|
|
|
|
),
|
|
|
|
minimumSize: const Size(50, 40), // 设置最小宽度,确保文字有足够空间
|
|
|
|
child: const Text('全选',style: TextStyle(fontSize: 18),),
|
|
|
|
padding:
|
|
|
|
),
|
|
|
|
const EdgeInsets.symmetric(horizontal: 8), // 添加水平内边距
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: const Text(
|
|
|
|
|
|
|
|
'全选',
|
|
|
|
|
|
|
|
style: TextStyle(fontSize: 18),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
title: _isSelectMode
|
|
|
|
title: _isSelectMode
|
|
|
|
? Text(
|
|
|
|
? Text(
|
|
|
|
'已选中 ${_selectedItems.where((item) => item).length} 首歌曲',
|
|
|
|
'已选中 ${_selectedItems.where((item) => item).length} 首歌曲',
|
|
|
|
style: const TextStyle(
|
|
|
|
style: const TextStyle(
|
|
|
|
color: Colors.black,
|
|
|
|
color: Colors.black,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: const Text(
|
|
|
|
: const Text(
|
|
|
|
'我的歌单',
|
|
|
|
'我的歌单',
|
|
|
|
style: TextStyle(color: Colors.black),
|
|
|
|
style: TextStyle(color: Colors.black),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
actions: [
|
|
|
|
actions: [
|
|
|
|
if (_isSelectMode)
|
|
|
|
if (_isSelectMode)
|
|
|
|
TextButton(
|
|
|
|
TextButton(
|
|
|
|
onPressed: (){
|
|
|
|
onPressed: () {
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
_isSelectMode = false;
|
|
|
|
_isSelectMode = false;
|
|
|
|
_selectedItems = List.generate(10, (index) => false);
|
|
|
|
_selectedItems = List.generate(10, (index) => false);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: const Text(
|
|
|
|
child: const Text(
|
|
|
|
"完成",
|
|
|
|
"完成",
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(color: Colors.black, fontSize: 18),
|
|
|
|
color: Colors.black,
|
|
|
|
))
|
|
|
|
fontSize: 18
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
body: Container(
|
|
|
|
body: Container(
|
|
|
@ -271,7 +269,7 @@ class _MyMusicViewState extends State<MyMusicView> {
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
IconButton(
|
|
|
|
IconButton(
|
|
|
|
onPressed: (){},
|
|
|
|
onPressed: () {},
|
|
|
|
icon: Image.asset(
|
|
|
|
icon: Image.asset(
|
|
|
|
"assets/img/button_play.png",
|
|
|
|
"assets/img/button_play.png",
|
|
|
|
width: 20,
|
|
|
|
width: 20,
|
|
|
@ -280,16 +278,14 @@ class _MyMusicViewState extends State<MyMusicView> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const Text(
|
|
|
|
const Text(
|
|
|
|
'播放全部',
|
|
|
|
'播放全部',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(fontSize: 16),
|
|
|
|
fontSize: 16
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
|
|
|
|
width: 5,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(width: 5,),
|
|
|
|
|
|
|
|
const Text(
|
|
|
|
const Text(
|
|
|
|
'50',
|
|
|
|
'50',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(fontSize: 16),
|
|
|
|
fontSize: 16
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -307,220 +303,221 @@ class _MyMusicViewState extends State<MyMusicView> {
|
|
|
|
child: songsNum == 0
|
|
|
|
child: songsNum == 0
|
|
|
|
? Center(child: Text('该歌单为空')) // 如果没有作品,显示提示文本
|
|
|
|
? Center(child: Text('该歌单为空')) // 如果没有作品,显示提示文本
|
|
|
|
: ListView.builder(
|
|
|
|
: ListView.builder(
|
|
|
|
itemCount: songsNum,
|
|
|
|
itemCount: songsNum,
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 5.0),
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 5.0),
|
|
|
|
child: ListTile(
|
|
|
|
child: ListTile(
|
|
|
|
leading: _isSelectMode
|
|
|
|
leading: _isSelectMode
|
|
|
|
? Checkbox(
|
|
|
|
? Checkbox(
|
|
|
|
value: _selectedItems[index],
|
|
|
|
value: _selectedItems[index],
|
|
|
|
onChanged: (value) {
|
|
|
|
onChanged: (value) {
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
_selectedItems[index] = value!;
|
|
|
|
_selectedItems[index] = value!;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
shape: const CircleBorder(),
|
|
|
|
shape: const CircleBorder(),
|
|
|
|
activeColor: const Color(0xff429482),
|
|
|
|
activeColor: const Color(0xff429482),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: CircleAvatar(
|
|
|
|
: CircleAvatar(
|
|
|
|
backgroundImage: NetworkImage(coverPath[index]), // 假设封面路径是网络资源
|
|
|
|
backgroundImage:
|
|
|
|
radius: 25,
|
|
|
|
NetworkImage(coverPath[index]),
|
|
|
|
),
|
|
|
|
// 假设封面路径是网络资源
|
|
|
|
title: Text('${name[index]} - ${singerName[index]}'), // 显示歌曲名和歌手名
|
|
|
|
radius: 25,
|
|
|
|
trailing: _isSelectMode
|
|
|
|
),
|
|
|
|
? null
|
|
|
|
title:
|
|
|
|
: IconButton(
|
|
|
|
Text('${name[index]} - ${singerName[index]}'),
|
|
|
|
icon: const Icon(Icons.more_vert),
|
|
|
|
// 显示歌曲名和歌手名
|
|
|
|
onPressed: () {
|
|
|
|
trailing: _isSelectMode
|
|
|
|
_bottomSheet(context);
|
|
|
|
? null
|
|
|
|
},
|
|
|
|
: IconButton(
|
|
|
|
),
|
|
|
|
icon: const Icon(Icons.more_vert),
|
|
|
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|
|
|
_bottomSheet(context);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
bottomNavigationBar: _isSelectMode
|
|
|
|
bottomNavigationBar: _isSelectMode
|
|
|
|
? BottomAppBar(
|
|
|
|
? BottomAppBar(
|
|
|
|
child: SizedBox(
|
|
|
|
child: SizedBox(
|
|
|
|
height: 127.0,
|
|
|
|
height: 127.0,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
IconButton(
|
|
|
|
IconButton(
|
|
|
|
onPressed: (){
|
|
|
|
onPressed: () {
|
|
|
|
_showSelectionDialog();
|
|
|
|
_showSelectionDialog();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
icon: Image.asset("assets/img/list_add.png"),
|
|
|
|
icon: Image.asset("assets/img/list_add.png"),
|
|
|
|
iconSize: 60,
|
|
|
|
iconSize: 60,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
const Text("添加到"),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
height: 50,
|
|
|
|
|
|
|
|
width: 2,
|
|
|
|
|
|
|
|
color: const Color(0xff429482),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
IconButton(
|
|
|
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
|
|
|
icon:
|
|
|
|
|
|
|
|
Image.asset("assets/img/list_download.png"),
|
|
|
|
|
|
|
|
iconSize: 60,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
const Text("下载"),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
ElevatedButton(
|
|
|
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
_isSelectMode = false;
|
|
|
|
|
|
|
|
_selectedItems =
|
|
|
|
|
|
|
|
List.generate(10, (index) => false);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
|
|
|
|
backgroundColor: const Color(0xff429482),
|
|
|
|
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 14),
|
|
|
|
|
|
|
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
|
|
|
|
|
|
shape: const RoundedRectangleBorder(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.zero,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const Text("添加到"),
|
|
|
|
child: const Text(
|
|
|
|
],
|
|
|
|
'取消',
|
|
|
|
),
|
|
|
|
style: TextStyle(color: Colors.black, fontSize: 16),
|
|
|
|
Container(
|
|
|
|
|
|
|
|
height: 50,
|
|
|
|
|
|
|
|
width: 2,
|
|
|
|
|
|
|
|
color: const Color(0xff429482),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
IconButton(
|
|
|
|
|
|
|
|
onPressed: (){},
|
|
|
|
|
|
|
|
icon: Image.asset("assets/img/list_download.png"),
|
|
|
|
|
|
|
|
iconSize: 60,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const Text("下载"),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
ElevatedButton(
|
|
|
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
_isSelectMode = false;
|
|
|
|
|
|
|
|
_selectedItems = List.generate(10, (index) => false);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
|
|
|
|
backgroundColor: const Color(0xff429482),
|
|
|
|
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 14),
|
|
|
|
|
|
|
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
|
|
|
|
|
|
shape: const RoundedRectangleBorder(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.zero,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: const Text('取消',
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
|
|
|
fontSize: 16
|
|
|
|
|
|
|
|
),),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
: null,
|
|
|
|
: null,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Future _bottomSheet(BuildContext context){
|
|
|
|
|
|
|
|
|
|
|
|
Future _bottomSheet(BuildContext context) {
|
|
|
|
return showModalBottomSheet(
|
|
|
|
return showModalBottomSheet(
|
|
|
|
context: context,
|
|
|
|
context: context,
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
shape: const RoundedRectangleBorder(borderRadius: BorderRadius.vertical(top: Radius.circular(30))),
|
|
|
|
shape: const RoundedRectangleBorder(
|
|
|
|
builder: (context) =>Container(
|
|
|
|
borderRadius: BorderRadius.vertical(top: Radius.circular(30))),
|
|
|
|
height: 210,
|
|
|
|
builder: (context) => Container(
|
|
|
|
padding: const EdgeInsets.only(top: 20),
|
|
|
|
height: 210,
|
|
|
|
child: Column(
|
|
|
|
padding: const EdgeInsets.only(top: 20),
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
|
|
Row(
|
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Column(
|
|
|
|
Row(
|
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
IconButton(
|
|
|
|
Column(
|
|
|
|
onPressed: (){},
|
|
|
|
children: [
|
|
|
|
icon: Image.asset("assets/img/list_remove.png"),
|
|
|
|
IconButton(
|
|
|
|
iconSize: 60,
|
|
|
|
onPressed: () {},
|
|
|
|
|
|
|
|
icon: Image.asset("assets/img/list_remove.png"),
|
|
|
|
|
|
|
|
iconSize: 60,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
const Text("从歌单移除")
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const Text("从歌单移除")
|
|
|
|
Column(
|
|
|
|
],
|
|
|
|
children: [
|
|
|
|
),
|
|
|
|
IconButton(
|
|
|
|
Column(
|
|
|
|
onPressed: () {},
|
|
|
|
children: [
|
|
|
|
icon: Image.asset("assets/img/list_download.png"),
|
|
|
|
IconButton(
|
|
|
|
iconSize: 60,
|
|
|
|
onPressed: (){},
|
|
|
|
),
|
|
|
|
icon: Image.asset("assets/img/list_download.png"),
|
|
|
|
const Text("下载")
|
|
|
|
iconSize: 60,
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const Text("下载")
|
|
|
|
Column(
|
|
|
|
],
|
|
|
|
children: [
|
|
|
|
),
|
|
|
|
IconButton(
|
|
|
|
Column(
|
|
|
|
onPressed: () {},
|
|
|
|
children: [
|
|
|
|
icon: Image.asset("assets/img/list_collection.png"),
|
|
|
|
IconButton(
|
|
|
|
iconSize: 60,
|
|
|
|
onPressed: (){},
|
|
|
|
),
|
|
|
|
icon: Image.asset("assets/img/list_collection.png"),
|
|
|
|
const Text("收藏")
|
|
|
|
iconSize: 60,
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
IconButton(
|
|
|
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
|
|
|
icon: Image.asset("assets/img/list_good.png"),
|
|
|
|
|
|
|
|
iconSize: 60,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
const Text("点赞")
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
IconButton(
|
|
|
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
|
|
|
icon: Image.asset("assets/img/list_comment.png"),
|
|
|
|
|
|
|
|
iconSize: 60,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
const Text("评论")
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const Text("收藏")
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Column(
|
|
|
|
const SizedBox(
|
|
|
|
children: [
|
|
|
|
height: 10,
|
|
|
|
IconButton(
|
|
|
|
),
|
|
|
|
onPressed: (){},
|
|
|
|
ElevatedButton(
|
|
|
|
icon: Image.asset("assets/img/list_good.png"),
|
|
|
|
onPressed: () {
|
|
|
|
iconSize: 60,
|
|
|
|
// Get.to(()=>const MusicView());
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
|
|
|
|
backgroundColor: const Color(0xffE6F4F1),
|
|
|
|
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
|
|
|
|
|
|
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
|
|
|
|
|
|
shape: const RoundedRectangleBorder(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.zero,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const Text("点赞")
|
|
|
|
),
|
|
|
|
],
|
|
|
|
child: const Text(
|
|
|
|
|
|
|
|
"查看详情页",
|
|
|
|
|
|
|
|
style: TextStyle(color: Colors.black, fontSize: 18),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Column(
|
|
|
|
ElevatedButton(
|
|
|
|
children: [
|
|
|
|
onPressed: () => Navigator.pop(context),
|
|
|
|
IconButton(
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
onPressed: (){},
|
|
|
|
backgroundColor: const Color(0xff429482),
|
|
|
|
icon: Image.asset("assets/img/list_comment.png"),
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
|
|
|
iconSize: 60,
|
|
|
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
|
|
|
|
|
|
shape: const RoundedRectangleBorder(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.zero,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const Text("评论")
|
|
|
|
),
|
|
|
|
],
|
|
|
|
child: const Text(
|
|
|
|
|
|
|
|
"取消",
|
|
|
|
|
|
|
|
style: TextStyle(color: Colors.black, fontSize: 18),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(height: 10,),
|
|
|
|
));
|
|
|
|
ElevatedButton(
|
|
|
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|
|
|
// Get.to(()=>const MusicView());
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
|
|
|
|
backgroundColor: const Color(0xffE6F4F1),
|
|
|
|
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
|
|
|
|
|
|
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
|
|
|
|
|
|
shape: const RoundedRectangleBorder(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.zero,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: const Text(
|
|
|
|
|
|
|
|
"查看详情页",
|
|
|
|
|
|
|
|
style: TextStyle(color:Colors.black,fontSize: 18),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
ElevatedButton(
|
|
|
|
|
|
|
|
onPressed: () =>Navigator.pop(context),
|
|
|
|
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
|
|
|
|
backgroundColor: const Color(0xff429482),
|
|
|
|
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
|
|
|
|
|
|
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
|
|
|
|
|
|
shape: const RoundedRectangleBorder(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.zero,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: const Text(
|
|
|
|
|
|
|
|
"取消",
|
|
|
|
|
|
|
|
style: TextStyle(color:Colors.black,fontSize: 18),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|