Skip to content

Commit

Permalink
Merge branch 'release/v0.9.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanM04 committed Jan 29, 2020
2 parents 24015b9 + 8196bd3 commit e3ccd35
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/models/anime.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class Anime {
Map<String, dynamic> toMap([bool limited = false]) {
final Map<String, dynamic> map = {
'id': id,
'name': limited ? null : name,
'slug': slug,
'favorite': favorite,
'watchingState':
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/cast_player/cast_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class _CastPlayerState extends State<CastPlayer> {

void tick(timer) async {
tickerData = await vlc.send(null);
setState(() {});
if (mounted) setState(() {});
}

void initPlayer() async {
Expand Down
12 changes: 10 additions & 2 deletions lib/services/requests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,19 @@ class RequestsService {
type
""";

static Future _query({String query, Map<String, dynamic> variables}) {
return _client.query(QueryOptions(
static Future<QueryResult> _query({
String query,
Map<String, dynamic> variables,
}) async {
final res = await _client.query(QueryOptions(
documentNode: gql(query),
variables: variables,
));

if (res.hasException)
throw res.exception;
else
return res;
}

// #============#
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: Ver anime sin complicaciones.
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.9.2
version: 0.9.3

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

0 comments on commit e3ccd35

Please # to comment.