xd
This commit is contained in:
parent
78ff1953ad
commit
ee93ef576b
@ -83,7 +83,7 @@ class MediaProvider extends ChangeNotifier {
|
|||||||
debugPrint('Fehler beim Laden der Medien: $e');
|
debugPrint('Fehler beim Laden der Medien: $e');
|
||||||
} finally {
|
} finally {
|
||||||
_isLoading = false;
|
_isLoading = false;
|
||||||
if(notify) notifyListeners();
|
if (notify) notifyListeners();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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: [
|
||||||
|
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user