skip to Main Content

Flutter VLC Player with options

import 'package:flutter/material.dart'; import 'package:flutter_vlc_player/flutter_vlc_player.dart'; class Home extends StatefulWidget { @override _ExampleVideoState createState() => _ExampleVideoState(); } class _ExampleVideoState extends State<Home> { final VlcPlayerController controller = new VlcPlayerController.network(url); @override Widget build(BuildContext context) { return Scaffold( body: SizedBox( height: 100, width: 40, child:…

VIEW QUESTION

Flutter : Instance of Future<dynamic>

I am trying to print a value returned from a function to the screen. Function: calculation.dart: Future<dynamic> getTotalCost(BuildContext context) async { final user = Provider.of<Userr?>(context, listen: false); double totalCost = 0.0; QuerySnapshot snapshot = await FirebaseFirestore.instance .collection('myOrders') .doc(user?.uid) .collection('items') .get();…

VIEW QUESTION
Back To Top
Search