xd
This commit is contained in:
		@@ -83,7 +83,7 @@ class MediaProvider extends ChangeNotifier {
 | 
			
		||||
      debugPrint('Fehler beim Laden der Medien: $e');
 | 
			
		||||
    } finally {
 | 
			
		||||
      _isLoading = false;
 | 
			
		||||
      if(notify) notifyListeners();
 | 
			
		||||
      if (notify) notifyListeners();
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -99,7 +99,7 @@ class _DetailViewState extends State<DetailView> {
 | 
			
		||||
    return Scaffold(
 | 
			
		||||
      appBar: AppBar(
 | 
			
		||||
        centerTitle: true,
 | 
			
		||||
        title: Text('f0ck #${widget.initialItemId} (${provider.type})'),
 | 
			
		||||
        title: Text('f0ck #${provider.mediaItems.elementAt(_currentIndex).id.toString()} (${provider.type})'),
 | 
			
		||||
      ),
 | 
			
		||||
      body: Stack(
 | 
			
		||||
        children: [
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,7 @@ class _MediaGridState extends State<MediaGrid> {
 | 
			
		||||
 | 
			
		||||
    _scrollController.addListener(() {
 | 
			
		||||
      if (_scrollController.position.pixels >=
 | 
			
		||||
          _scrollController.position.maxScrollExtent - 100) {
 | 
			
		||||
          _scrollController.position.maxScrollExtent - 200) {
 | 
			
		||||
        provider.loadMedia(notify: false);
 | 
			
		||||
      }
 | 
			
		||||
    });
 | 
			
		||||
@@ -45,7 +45,9 @@ class _MediaGridState extends State<MediaGrid> {
 | 
			
		||||
        title: Text('fApp v${AppVersion.version}'),
 | 
			
		||||
        actions: [
 | 
			
		||||
          IconButton(
 | 
			
		||||
            icon: Icon(provider.random ? Icons.shuffle_on_outlined : Icons.shuffle),
 | 
			
		||||
            icon: Icon(
 | 
			
		||||
              provider.random ? Icons.shuffle_on_outlined : Icons.shuffle,
 | 
			
		||||
            ),
 | 
			
		||||
            onPressed: () => provider.toggleRandom(),
 | 
			
		||||
          ),
 | 
			
		||||
          IconButton(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user