onPressed: () async {
var sum = int.parse(text);
var url = "http://10.0.101.141:6113/api/transaction/createtransaction";
try {
final response = await http.post (
Uri.parse(url),
headers: <String, String>{
'Content-Type': 'application/json; charset=UTF-8',
},
body: jsonEncode(<String, int> {
'amount': sum
})
);
Navigator.push(context, new MaterialPageRoute(builder: (context) => new Qr()));
} catch (error) {
print(error);
}
},
<div class="wrp">
<video class="inst-video">
<source src="preview1.mp4" type="video/mp4" />
</video>
<video class="inst-video">
<source src="preview2.mp4" type="video/mp4" />
</video>
<video class="inst-video">
<source src="preview3.mp4" type="video/mp4" />
</video>
</div>
<button onclick="enableMute()" id="toggleActionMute">MUTE</button>
<script>
let wrp = document.querySelector(".wrp");
let allVid = wrp.querySelectorAll("video");
function enableMute() {
allVid.muted = true;
}
</script>
if (chBox.checked) {
series_two = chart.plot(0).line(data);
series_two.name("НАЦБанк");
series.id("one");
} else {
chart.removeSeries("one");
}
console.log(series_two)
})
var series = chart.getSeries(0);
series.id('Not seasonal');
// Removes the first series by id.
chart.removeSeries('Not seasonal');
chart.title('Remove series by id');
chart.container('container');
chart.draw();