This commit is contained in:
Flummi 2025-06-06 10:10:40 +02:00
parent 78ff1953ad
commit ee93ef576b
3 changed files with 6 additions and 4 deletions

View File

@ -99,7 +99,7 @@ class _DetailViewState extends State<DetailView> {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
centerTitle: true, centerTitle: true,
title: Text('f0ck #${widget.initialItemId} (${provider.type})'), title: Text('f0ck #${provider.mediaItems.elementAt(_currentIndex).id.toString()} (${provider.type})'),
), ),
body: Stack( body: Stack(
children: [ children: [

View File

@ -27,7 +27,7 @@ class _MediaGridState extends State<MediaGrid> {
_scrollController.addListener(() { _scrollController.addListener(() {
if (_scrollController.position.pixels >= if (_scrollController.position.pixels >=
_scrollController.position.maxScrollExtent - 100) { _scrollController.position.maxScrollExtent - 200) {
provider.loadMedia(notify: false); provider.loadMedia(notify: false);
} }
}); });
@ -45,7 +45,9 @@ class _MediaGridState extends State<MediaGrid> {
title: Text('fApp v${AppVersion.version}'), title: Text('fApp v${AppVersion.version}'),
actions: [ actions: [
IconButton( IconButton(
icon: Icon(provider.random ? Icons.shuffle_on_outlined : Icons.shuffle), icon: Icon(
provider.random ? Icons.shuffle_on_outlined : Icons.shuffle,
),
onPressed: () => provider.toggleRandom(), onPressed: () => provider.toggleRandom(),
), ),
IconButton( IconButton(