flutter-web

Flutter Web Display Microsoft Documents Firebase

北慕城南 提交于 2021-01-29 15:45:32
问题 I am trying to embed MS Documents in a Flutter Web App. Documents are stored on Firebase Storage. I am using MS Web Viewer to display them in browser. This works without any problem: https://view.officeapps.live.com/op/embed.aspx?src=https://file-examples.com/wp-content/uploads/2017/08/file_example_PPT_250kB.ppt The following two versions where the documents are hosted on Firebase are not working: https://view.officeapps.live.com/op/embed.aspx?src=https://firebasestorage.googleapis.com/v0/b

How to reuse the same layout screen without creating a new widget tree branch

我是研究僧i 提交于 2021-01-29 09:04:44
问题 I am developing Flutter Web Application. The object is to reuse the same layout screen widget(Drawer, AppBar) for most of route screen. I have tried create a new Scaffold class and add body widget to each screen. The problem is every time I navigate to a new screen. There is a new (MyScaffold) created on the widget tree. So it is not good for performance. I also tried to use nested router, the problem is nested router is not supported by url that I can not navigate to the screen by typing the

GDPR, Cookies consent banner Flutter web

让人想犯罪 __ 提交于 2021-01-29 08:29:29
问题 I'm building my website with Flutter but programming for web is very new to me and I'm not quite sure I understand exactly how Cookies work. I still need to understand what cookies are to be written where, and where do I take those cookies from. Building the banner to manage the should be easy, and if I'm not wrong it should be the first thing that pops up in the home page. For example Medium banner is just a dismissible banner swing the message To make Medium work, we log user data. By using

cannot access the body fields of a Request without content-type - Flutter

↘锁芯ラ 提交于 2021-01-29 06:38:29
问题 I am having an issue making an HTTP PUT requests in a flutter. I can print the data on the console but when I tried to parse it to the endpoint that performs a PUT request, it return a response of 404 please can anyone help me? and this is the message: cannot access the body fields of a Request without content-type "application/x-www-form-urlencoded" Here is the actual problem: for (Products i in selectedProducts) { var stockupdate = { "oid": i.oid, // I can't get the oid here "unitInStock":

Flutter Web-Proper way to use both of onGenerateRoute and routes as properties of MaterialApp

扶醉桌前 提交于 2021-01-29 06:09:38
问题 I have a browser link of reset password that sent by email (http://trialxx.id/#/auth?email=trial@email.com ) , so whenever user click that link I would like to navigate them to ResetPasswordScreen. So far I have been declaring the route inside onGenerateRoute , here is the code Route<dynamic> generateRoute(RouteSettings settings) { final settingsUri = Uri.parse(settings.name); final postID = settingsUri.queryParameters['email']; const start = "#/"; const end = "?"; final startIndex = settings

Flutter Web: Implemented solution using HtmlElementView, IFrameElement, registerViewFactory is not working in ios

折月煮酒 提交于 2021-01-29 05:22:07
问题 I have implemented a solution to integrate an online payment gateway in my flutter web project till now i have not found any other solution except this one. The link for the solution I have implemented in my flutter web project is This for refrence, now the problem is, this works fine in android web but it is not working in iOS web i don't know why. can anyone help me with what is the problem with this or why it is not working in iOS?, or any other solution for implementing payment gateway in

Flutter web local storage

浪子不回头ぞ 提交于 2021-01-28 19:11:57
问题 I am using localstorage to store some basic data in my flutter web app. Everything works fine but my problem is that the data is not available when I restart the browser. // setting the data html.window.localStorage["user-key"] = "Hello There"; //Reading it String val = html.window.localStorage["user-key"]; I want to know if this is the intended behavior or intended behavior for testing in flutter web or an error on my side. 回答1: According to the documentation it is supposed to stay across

async/await to do CircularProgressIndicator in a Login Page in Flutter

时光总嘲笑我的痴心妄想 提交于 2021-01-28 11:40:46
问题 I am facing problems with the CircularProgressIndicator in a login page. I would like to do this. When the users tap in "log in" button I want that the app makes a CircularProgressIndicator and kick the raisedButton Text and add the CircularProgessIdnicator, and after that my app get the data from my webservice I want to stop the CircularProgessIndicator. Any Tips? thanks. Actual Code (you can compile it without problems just add http: ^0.12.0 in dependencies). Photos of the actual system:

how to change desktop windows application icon for flutter?

こ雲淡風輕ζ 提交于 2021-01-28 06:52:34
问题 I using the desktop flutter and i searched for a way to do that i couldnt find any articles about that sp ii want to know how to change the launcher app icon for windows desktop and also for mac and linux. 回答1: To change the icon you just need to replace the icon file in your project: Windows: windows/runner/resources/app_icon.ico macOS: macos/Runner/Assets.xcassets/AppIcon.appiconset Linux doesn't have an icon set up in the template yet; you can follow this issue for updates. 来源: https:/

Flutter Web: Stack and Flare Issue

随声附和 提交于 2021-01-27 19:40:53
问题 I was trying to create a simple web page on Flutter Web (dev channel - v1.13.2) and this weird issue occured. When I tried to place a Flare animation in stack widget which have 2 additional widget, a background and a centered text respectively, the Flare didn't seems to appear. But when I remove the background container, flare works and positioned perfectly. Here is the code; import 'package:flutter/material.dart'; import "package:flare_flutter/flare_actor.dart"; void main() => runApp(MyApp()