This commit is contained in:
@ -359,10 +359,13 @@ class _MediaDetailScreenState extends State<MediaDetailScreen> {
|
||||
}
|
||||
final MediaItem currentItem =
|
||||
mediaController.items[_currentIndex.value];
|
||||
|
||||
final bool hasSoftButtons = MediaQuery.of(context).padding.bottom > 24.0;
|
||||
|
||||
return DraggableScrollableSheet(
|
||||
initialChildSize: 0.11,
|
||||
minChildSize: 0.11,
|
||||
maxChildSize: 0.245,
|
||||
initialChildSize: hasSoftButtons ? 0.11 : 0.2,
|
||||
minChildSize: hasSoftButtons ? 0.11 : 0.2,
|
||||
maxChildSize: hasSoftButtons ? 0.245 : 0.2,
|
||||
snap: true,
|
||||
builder: (context, scrollController) => ListView(
|
||||
controller: scrollController,
|
||||
|
Reference in New Issue
Block a user