carga inicial
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import 'package:appcardsstarter/videos/api/youtube_api.dart';
|
||||
import 'package:appcardsstarter/videos/api/youtube_classes.dart';
|
||||
import 'package:decpisos/index/index_controller.dart';
|
||||
import 'package:decpisos/videos/api/youtube_api.dart';
|
||||
import 'package:decpisos/videos/api/youtube_classes.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:intl/intl.dart' show DateFormat;
|
||||
|
||||
class YouTubeController extends GetxController {
|
||||
YouTubeApi _api = new YouTubeApi();
|
||||
|
||||
final IndexController _ic = Get.find();
|
||||
var results = new YouTubeSearchResponse(
|
||||
errorCode: 0,
|
||||
errorMessage: '',
|
||||
@@ -58,6 +59,9 @@ class YouTubeController extends GetxController {
|
||||
results.value.nextPageToken = more.nextPageToken ?? '';
|
||||
results.value.items += more.items;
|
||||
}
|
||||
if(this.errorCode.value == -5){
|
||||
this._ic.tabsWithoutVideos();
|
||||
}
|
||||
this.loading.value = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user