flutter-web

Possibilities to scan qr-code in flutter web

丶灬走出姿态 提交于 2021-02-11 06:16:12
问题 I want to build a PWA based on flutter web which relies on scanning a QR-Code and accessing the user's current position. From my point of knowledge for both functionalities there are currently no packages available. However for getting the user's location there is a stackoverflow thread (Get User's Location for flutter Web) providing a solution. So I'm wondering if there is any chance that there is a similar solution for the QR-Scanning issue? Sadly, I'm not very familiar with web and

scrollbar with drag effect in flutter

蓝咒 提交于 2021-02-10 04:01:29
问题 I need to implement scrolling bars in form. This is for web users by clicking on scrolling bar, they can navigate. Scrollbar class in flutter works for touch device, but not with mouse based input. I've tried using "draggable_scrollbar" library from pub.dev, however it only accepts ListView as child. My code: Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('My form'), ), body: Padding( padding: const EdgeInsets.all(16.0), child: Scrollbar( child:

scrollbar with drag effect in flutter

允我心安 提交于 2021-02-10 04:01:27
问题 I need to implement scrolling bars in form. This is for web users by clicking on scrolling bar, they can navigate. Scrollbar class in flutter works for touch device, but not with mouse based input. I've tried using "draggable_scrollbar" library from pub.dev, however it only accepts ListView as child. My code: Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('My form'), ), body: Padding( padding: const EdgeInsets.all(16.0), child: Scrollbar( child:

scrollbar with drag effect in flutter

醉酒当歌 提交于 2021-02-10 04:00:29
问题 I need to implement scrolling bars in form. This is for web users by clicking on scrolling bar, they can navigate. Scrollbar class in flutter works for touch device, but not with mouse based input. I've tried using "draggable_scrollbar" library from pub.dev, however it only accepts ListView as child. My code: Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('My form'), ), body: Padding( padding: const EdgeInsets.all(16.0), child: Scrollbar( child:

scrollbar with drag effect in flutter

与世无争的帅哥 提交于 2021-02-10 04:00:25
问题 I need to implement scrolling bars in form. This is for web users by clicking on scrolling bar, they can navigate. Scrollbar class in flutter works for touch device, but not with mouse based input. I've tried using "draggable_scrollbar" library from pub.dev, however it only accepts ListView as child. My code: Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('My form'), ), body: Padding( padding: const EdgeInsets.all(16.0), child: Scrollbar( child:

How to detect mouse wheel scrolling in flutter web?

安稳与你 提交于 2021-02-08 13:25:13
问题 How can you detect mouse wheel scroll in flutter web? It seems like it would be in a gesture detector but I don't see it in there. How do list views detect mouse scroll? 回答1: Wrap your ListView (or any other scroll view) with Listener and listen for PointerScrollEvent: Listener( onPointerSignal: (pointerSignal){ if(pointerSignal is PointerScrollEvent){ // do something when scrolled print('Scrolled'); } }, child: ... //your scrollview here ) 来源: https://stackoverflow.com/questions/60716259/how

How can I update map data that's in a array in firebase? (Flutter)

↘锁芯ラ 提交于 2021-02-08 03:06:28
问题 I'm using flutter web and firebase for a project and got stuck on a problem. I'm trying to update a map in an array in firestore. using this: var val = []; val.add({'groupUID': groupUID, 'inviteStatus': status}); var userInviteUID; await users .document(uid) .get() .then((value) => userInviteUID = value.data['inviteUID']); await invites .document(userInviteUID) .updateData({'invites': FieldValue.arrayUnion(val)}); I got this result: firestore structure What I want to do is just change the 1

How can I update map data that's in a array in firebase? (Flutter)

邮差的信 提交于 2021-02-08 03:00:11
问题 I'm using flutter web and firebase for a project and got stuck on a problem. I'm trying to update a map in an array in firestore. using this: var val = []; val.add({'groupUID': groupUID, 'inviteStatus': status}); var userInviteUID; await users .document(uid) .get() .then((value) => userInviteUID = value.data['inviteUID']); await invites .document(userInviteUID) .updateData({'invites': FieldValue.arrayUnion(val)}); I got this result: firestore structure What I want to do is just change the 1

Flutter Web : How to Link to a Specific Line or Paragraph on a Web Page

孤者浪人 提交于 2021-01-29 16:44:39
问题 How do I get the ability to reference to a particular part of the page (a paragraph or a tab) in Flutter web. In traditional web url, this is made possible by anchoring the div to be references with a # . For e.g. in the link https://cloud.google.com/customers/featured/paypal#take-the-next-step , the link takes as directly to the div that is tagged as take-the-next-step Is there a way to do this in Flutter Web yet ? 回答1: You can get the current URL and parse it for the parameter at the end of

Error while sending List data to cloud firestore using REST api in flutter

╄→гoц情女王★ 提交于 2021-01-29 16:22:39
问题 I'm not able to send List of string to cloud firestore using REST api in flutter. //###### here is my code ########## Future<bool> addVisit(Visit visit) async { //function try { var response = await http.post( //post method to send data "${VISIT_API}", headers: {"Authorization": "Bearer ${Utils.loginToken}"}, Working fine upto "Facility", but getting error while inserting "Facility: as all others are String values and Facility is of type List body: json.encode( { "fields": { "status": {