fix linting
add routename in privider
This commit is contained in:
@ -57,16 +57,18 @@ class _InfoViewState extends State<InfoView> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text("Likes: ${widget.vdata.likes}"),
|
||||
IconButton(onPressed: () async {
|
||||
final data = await API
|
||||
.query("video", "addLike", {'MovieId': widget.vdata.movieId});
|
||||
final d = jsonDecode(data);
|
||||
if (d["result"] != 'success') {
|
||||
Log.w(d);
|
||||
}
|
||||
// bit hacky but it works
|
||||
widget.vdata.likes += 1;
|
||||
}, icon: Icon(Icons.thumb_up)),
|
||||
IconButton(
|
||||
onPressed: () async {
|
||||
final data = await API.query("video", "addLike",
|
||||
{'MovieId': widget.vdata.movieId});
|
||||
final d = jsonDecode(data);
|
||||
if (d["result"] != 'success') {
|
||||
Log.w(d);
|
||||
}
|
||||
// bit hacky but it works
|
||||
widget.vdata.likes += 1;
|
||||
},
|
||||
icon: Icon(Icons.thumb_up)),
|
||||
Text("Quality: ${widget.vdata.quality}"),
|
||||
Text("Length: ${widget.vdata.length}sec"),
|
||||
Text("Actors:"),
|
||||
|
@ -1,7 +1,6 @@
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import '../api/api.dart';
|
||||
import '../api/token.dart';
|
||||
|
Reference in New Issue
Block a user