add a video page and disply tiles correctly

This commit is contained in:
2022-04-15 09:16:41 +02:00
parent baed9c23d2
commit d7184f09aa
8 changed files with 327 additions and 61 deletions

View File

@ -10,7 +10,6 @@ class API {
String apinode, String action, Object payload) async {
final Completer<String> cmpl = Completer();
final t = await Token.getInstance().getToken();
Log.d(t);
if (t != null) {
final resp = await http.post(
Uri.parse(t.domain + '/api/$apinode/$action'),

View File

@ -31,8 +31,11 @@ class Token {
WidgetsFlutterBinding.ensureInitialized();
final token = await _storage.read(key: 'jwt');
final domain = await _storage.read(key: 'domain');
// check if value is defined in phone store
if (token != null && domain != null) {
_tokenval = token;
_domain = domain;
completer.complete(TokenT(token, domain));
} else {
Log.d("no token defined");