flutter-web

How to get Containers to fill available vertical space in a Row?

回眸只為那壹抹淺笑 提交于 2021-01-07 03:48:39
问题 can anyone help me out? I'm struggling to figure out how I can get the coloured containers to extend to match the height of the tallest one in their row. Currently they have no fixed height/width and are wrapped in Expanded widgets to get their dynamic size. I'd like to keep their responsive sizes if possible. I already have a method in place to switch to a Column instead of a Row once the screen is small enough. Once in a Column I can use width: double.infinity because there is no horizontal

How to set documentID in firestore using flutter

牧云@^-^@ 提交于 2021-01-07 02:16:50
问题 I am trying to set my documentID manually in my flutter application but it keeps creating a new field inside my document named DocumentID. How do I set my documented? final barcode = TextEditingController(); final price = TextEditingController(); final stock = TextEditingController(); final color = TextEditingController(); ///the above are textformfield controllers I use for the data input addData() { Map<String, dynamic> theData = { //"DocumentID" : barcode.text, "Color" : color.text, "Price

Flutter web asset images not displaying when deployed to web server

只愿长相守 提交于 2021-01-02 06:07:12
问题 I have created a flutter web project which uses network images and asset images, everything works fine when debugging on my pc but when I deploy it to a web server, the network images work fine but the asset images dont show at all. When I Inspect the page in the web browsers consol, I get the error below: $1 @ window.dart:120 /assets/slack.png:1 Failed to load resource: the server responded with a status of 503 () window.dart:120 Error while trying to load an asset: Failed to load asset at

“$ flutter build web” is throwing the error “Missing index.html”?

扶醉桌前 提交于 2020-12-30 11:34:54
问题 When I run: $ flutter build web I'm getting the error Missing index.html. The flutter app is displaying in the browser, but in VS Code it reads "No Device." How can I debug, or fix this problem? 回答1: It would help to see the output of your flutter doctor, but I am guessing that your project is not configured for web. If you haven't already, you need to switch to the flutter beta channel like so: $ flutter channel beta $ flutter upgrade $ flutter config --enable-web At this point, running

“$ flutter build web” is throwing the error “Missing index.html”?

谁说我不能喝 提交于 2020-12-30 11:32:29
问题 When I run: $ flutter build web I'm getting the error Missing index.html. The flutter app is displaying in the browser, but in VS Code it reads "No Device." How can I debug, or fix this problem? 回答1: It would help to see the output of your flutter doctor, but I am guessing that your project is not configured for web. If you haven't already, you need to switch to the flutter beta channel like so: $ flutter channel beta $ flutter upgrade $ flutter config --enable-web At this point, running

“$ flutter build web” is throwing the error “Missing index.html”?

倖福魔咒の 提交于 2020-12-30 11:30:20
问题 When I run: $ flutter build web I'm getting the error Missing index.html. The flutter app is displaying in the browser, but in VS Code it reads "No Device." How can I debug, or fix this problem? 回答1: It would help to see the output of your flutter doctor, but I am guessing that your project is not configured for web. If you haven't already, you need to switch to the flutter beta channel like so: $ flutter channel beta $ flutter upgrade $ flutter config --enable-web At this point, running

XMLHttpRequest error in flutter web [Enabling CORS AWS API gateway]

半城伤御伤魂 提交于 2020-12-30 06:58:06
问题 Note: It turns out that this had nothing to do with flutter and everything to do with the fact that I had set the API gateway to a Lambda Proxy I am trying to hit an API endpoint from a flutter web application, every time it errors out and gives me the following error. Error getting sensor data: DioError [DioErrorType.RESPONSE]: XMLHttpRequest error. I know there are several questions here on SO(like this and this) discussing this issue and the solution seems to be to enable CORS support on

How can you set title and icon for a flutter web app?

我怕爱的太早我们不能终老 提交于 2020-12-23 11:12:28
问题 What I'm trying to do is build a flutter web app that, when displayed in the browser, the tab shows an icon and a title (as currently it only shows the world icon and the localhost... title). Actual Result : Desired Result : Edit: I can now add the title, as this is set in the main function Widget build(BuildContext context) { return Scaffold( appBar: AppBar( leading: Icon(Icons.menu, color: Colors.white,), title: Text(_your title here_), ) ... ); } So, the only thing I need to edit is the

Callable Cloud Functions Returning Null in Flutter

强颜欢笑 提交于 2020-12-15 19:45:22
问题 My Goal: I wish to call a Cloud Function in my Flutter App which retrieves a JSON obj from a Python-FastAPI server and displays content in Alert Dialogue . The Error: The Callable Function Service within my flutter app recieves null. My alert dialog displays "Null Value Error" as triggered by my code. Cloud Side Operations: My Cloud Function works in 2 parts: Receive data from client (Flutter APP) in Callable Http Function Call Python API => return to Cloud Function which returns to Client

Callable Cloud Functions Returning Null in Flutter

人盡茶涼 提交于 2020-12-15 19:37:37
问题 My Goal: I wish to call a Cloud Function in my Flutter App which retrieves a JSON obj from a Python-FastAPI server and displays content in Alert Dialogue . The Error: The Callable Function Service within my flutter app recieves null. My alert dialog displays "Null Value Error" as triggered by my code. Cloud Side Operations: My Cloud Function works in 2 parts: Receive data from client (Flutter APP) in Callable Http Function Call Python API => return to Cloud Function which returns to Client