Skip to content

Commit

Permalink
fixed vtt exception
Browse files Browse the repository at this point in the history
  • Loading branch information
BeamlakAschalew committed Dec 5, 2023
1 parent 40641d9 commit 0b02d22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/constants/app_constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const kTextSmallAboutBodyStyle = TextStyle(
const kTableLeftStyle =
TextStyle(overflow: TextOverflow.ellipsis, fontWeight: FontWeight.bold);

const String currentAppVersion = '2.5.0-3';
const String currentAppVersion = '2.5.0-4';

final client = HttpClient();
const retryOptions = RetryOptions(
Expand All @@ -59,7 +59,8 @@ final List<String> appNames = [
'flixquest-v2.4.4.apk',
'flixquest-v2.5.0.apk',
'flixquest-v2.5.0-2.apk',
'flixquest-v2.5.0-3.apk'
'flixquest-v2.5.0-3.apk',
'flixquest-v2.5.0-4.apk'
];

CacheManager cacheProp() {
Expand Down
2 changes: 1 addition & 1 deletion lib/functions/network.dart
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ Future<String> getVttFileAsString(String url) async {
final decoded = utf8.decode(bytes);
return decoded;
} else {
throw Exception('Failed to load VTT file');
return "";
}
} finally {
client.close();
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A Flutter movie app.

publish_to: "none"

version: 2.5.0+3
version: 2.5.0+4

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down

0 comments on commit 0b02d22

Please sign in to comment.