lohanidamodar / flutter_audiobooks_app Goto Github PK
View Code? Open in Web Editor NEWNow runs on Flutter 3 - An audiobook downloader and player in flutter using librivox api (WIP)
License: GNU General Public License v3.0
Now runs on Flutter 3 - An audiobook downloader and player in flutter using librivox api (WIP)
License: GNU General Public License v3.0
Hi, I have a question about this file. In the images of the readme it shows the player with a slider, but here in the code when running I don't see it. Were there changes?
This is the error its giving me
Launching lib\main.dart on TECNO CA6 in debug mode...
Running Gradle task 'assembleDebug'...
Compiler message:
../../flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-1.1.3/lib/src/cached_network_image_provider.dart:42:24: Error: The method 'CachedNetworkImageProvider.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'.
ImageStreamCompleter load(CachedNetworkImageProvider key) {
^
../../flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24: Context: This is the overridden method ('load').
ImageStreamCompleter load(T key, DecoderCallback decode);
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
FAILURE: Build failed with an exception.
Where:
Script 'C:\Users\haroun\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\Users\haroun\flutter\bin\flutter.bat'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 14s
Finished with error: Gradle task assembleDebug failed with exit code 1
Getting "no posts" on home screen and nothing else(not section and anything) when running the code on Android emulator. Is there anything that needs to be changes for it to run as per the state mentioned in screenshots?
WHY THIS FUNCTION IS UNDERLINED BY RED COLOR
@OverRide
Stream mapEventToState(currentState, event) async* {
if (event is FetchBook && !_hasReachedMax(currentState)) {
try {
if (currentState is BookUninitialized) {
final books = await _fetchBooks(0, 20);
yield BookInitialized.success(books);
}
if (currentState is BookInitialized) {
final books = await fetchBooks(currentState.books.length, 20);
yield books.isEmpty
? currentState.copyWith(hasReachedMax: true)
: BookInitialized.success(currentState.books + books);
}
} catch () {
yield BookInitialized.failure();
}
}
}
Future and Streams are implemented in dart:core package is automatically imported in all the dart files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.