feat: make other views correctly scrollable
This commit is contained in:
parent
e68c775fca
commit
9bf73c1bc5
2 changed files with 39 additions and 35 deletions
|
@ -36,41 +36,44 @@ class _AlbumViewState extends State<AlbumView> {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(),
|
appBar: AppBar(),
|
||||||
body: SizedBox(
|
body: Align(
|
||||||
width: 100.w,
|
alignment: Alignment.topCenter,
|
||||||
height: 100.h,
|
child: SizedBox(
|
||||||
child: Column(
|
width: 100.w,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
height: 90.h,
|
||||||
children: [
|
child: Column(
|
||||||
HeroBanner(
|
children: [
|
||||||
cacheKey: widget.album.coverArtId,
|
HeroBanner(
|
||||||
imageUrl: widget.album.coverArtUrl,
|
cacheKey: widget.album.coverArtId,
|
||||||
title: widget.album.name,
|
imageUrl: widget.album.coverArtUrl,
|
||||||
description: widget.album.artistName,
|
title: widget.album.name,
|
||||||
),
|
description: widget.album.artistName,
|
||||||
SizedBox(
|
|
||||||
height: 65.h,
|
|
||||||
width: 95.w,
|
|
||||||
child: ListView.builder(
|
|
||||||
itemBuilder: (c, i) => InkWell(
|
|
||||||
onTap: () async {
|
|
||||||
playerKey.currentState?.update();
|
|
||||||
await AudioPlayerService().playNow(
|
|
||||||
queueNext: _songs.getRange(i, _songs.length).toList(),
|
|
||||||
queuePast: (i == 0) ? [] : _songs.getRange(0, i).toList(),
|
|
||||||
);
|
|
||||||
|
|
||||||
setState(() {});
|
|
||||||
},
|
|
||||||
child: SongRow(
|
|
||||||
imageUrl: _songs[i].coverArtUrl,
|
|
||||||
songTitle: _songs[i].title,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
itemCount: _songs.length,
|
|
||||||
),
|
),
|
||||||
),
|
SizedBox(
|
||||||
],
|
height: 46.h,
|
||||||
|
width: 95.w,
|
||||||
|
child: ListView.builder(
|
||||||
|
itemBuilder: (c, i) => InkWell(
|
||||||
|
onTap: () async {
|
||||||
|
playerKey.currentState?.update();
|
||||||
|
await AudioPlayerService().playNow(
|
||||||
|
queueNext: _songs.getRange(i, _songs.length).toList(),
|
||||||
|
queuePast:
|
||||||
|
(i == 0) ? [] : _songs.getRange(0, i).toList(),
|
||||||
|
);
|
||||||
|
|
||||||
|
setState(() {});
|
||||||
|
},
|
||||||
|
child: SongRow(
|
||||||
|
imageUrl: _songs[i].coverArtUrl,
|
||||||
|
songTitle: _songs[i].title,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
itemCount: _songs.length,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -51,7 +51,8 @@ class _ArtistViewState extends State<ArtistView> {
|
||||||
description: "This could be a cool description soon",
|
description: "This could be a cool description soon",
|
||||||
heroTag: widget.artist.name,
|
heroTag: widget.artist.name,
|
||||||
),
|
),
|
||||||
Center(
|
Align(
|
||||||
|
alignment: Alignment.topCenter,
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 70.h,
|
height: 70.h,
|
||||||
width: 95.w,
|
width: 95.w,
|
||||||
|
|
Loading…
Reference in a new issue