Questions tagged [flutter-web]

Questions related to Flutter for web support – currently (as of January 2021) is available on the beta channel. Flutter supports the generation of web content rendered using standards-based web technologies: HTML, CSS and JavaScript. With web support, you can compile existing Flutter code written in Dart into a client experience that can be embedded in the browser and deployed to any web server.

Flutter for web is a code-compatible implementation of Flutter that is rendered using standards-based web technologies: HTML, CSS and JavaScript. With web support, you can compile existing Flutter code written in Dart into a client experience that can be embedded in the browser and deployed to any web server.

4374 questions
1
vote
2 answers

Prevent copy paste feature when right click the mouse in textfields flutter web

I prevent copy paste in textformfield(Flutter web) using Ctrl+C and Ctrl+V by adding enableInteractiveSelection: false, toolbarOptions: ToolbarOptions( copy: false, cut: false, paste: false, selectAll: false, ), But still, it is possible to…
Developer
  • 148
  • 8
1
vote
0 answers

Why Flutter web is Slow rather than ReactJs web?

Why flutter WEB is slow in loading as compare REACTjs? may be its due to dart converting into js.
1
vote
1 answer

How to enable web notification in Flutter web view

I create app from web using web view the web used to send notification to user it work in chrome and other browser but it not work in web view app Is their any way to show web notification like chrome in flutter web view I have try firebase not work…
Mr Cody
  • 55
  • 7
1
vote
1 answer

Flutter web app deep link to only load single pages

I'm trying to get a Flutter Web App to only load single pages based on the URL entered, rather than a stack of pages. For example: website.com/#/ only loads HomePage() website.com/#/redirect only loads RedirectPage() website.com/#/book/id=12 only…
RedHappyLlama
  • 53
  • 1
  • 8
1
vote
0 answers

Flutter http request works on Android but not Chrome or MacOS

This is the code that I am running: var response = await http.get( Uri.parse( 'https://arkiteki.co/api/v1/questions', ), ); Results: Android: Works Chrome: Error: XMLHttpRequest error. MacOS: connection failed Same code,…
Joel Castro
  • 485
  • 6
  • 20
1
vote
1 answer

How to get callback or return value from async JS function to Dart in Flutter Web?

I am trying to execute JS native code in Flutter web. I got the way to call JS function from Dart but could not find any workaround to get the result back from JS to Dart. Below are the JS code and Dart code which I was trying to achieve in…
Patel Pinkal
  • 8,984
  • 4
  • 28
  • 50
1
vote
2 answers

Uint64List not supported on flutter web

i have an error with Uint64List in flutter Web (in pointycastle lib) var length = Uint8List.view((Uint64List(2)..[0] = iv.length * 8).buffer); "Error: Unsupported operation: Uint64List not supported on the…
redDwarf
  • 336
  • 1
  • 9
1
vote
2 answers

Should I consume IndexedDB directly when reloading a Flutter web app to determine auth state when using FirebaseAuth?

I am building a Flutter web app using FirebaseAuth for authentication, and I am trying to figure out how to load the correct route when the user a) is authenticated, and b) the user refreshes the web page. When the app loads, firebase gets…
thecloud_of_unknowing
  • 1,103
  • 14
  • 23
1
vote
1 answer

idpiframe_initialization_failed, Not a valid origin for the client flutter web

I try to make user can use login by google in flutter web. Every thing worked if I use this comment: flutter run -d chrome --web-hostname localhost --web-port 5000 But if I work it by button run in android studio I get this…
M Al
  • 357
  • 7
  • 15
1
vote
1 answer

url_launche behaves differently in local vs firebase hosting

I have created a simple Flutter Web App and deployed in to Firebase hosting. I use url_launcher: ^6.0.17 I created a list of links that can be clicked to open in a new window: dynamic _launchURL() async { final parsedUrl = Uri( path: url, …
1
vote
1 answer

How can we implement in app update in flutter app

I want to implement in-app-update or on-the-air update which means whenever the user opens the app, it checks and automatically downloads a new chunk of code and merges it, and asks the user to restart like most of the games (COD, PUBGm) do. NOTE :…
Ayyaz meo
  • 450
  • 5
  • 13
1
vote
1 answer

Responsive size in a website ( flutter web)

I am new in flutter web I want to create a website that is fully responsive I use from many packages but it is not desirable for me. I used from screen uttil pacakge and also screen, but the are useful for mobile apps it doesn't suitable for…
maliha arash
  • 153
  • 2
  • 14
1
vote
2 answers

Display another table row (table header/ title) in flutter with Table Widget

I got a project, where a table widget was used instead of DataTable, So I have been able to pull my JSON data to the table row, but I am having issues showing the header for the table, I can use DataTable to achieve, but I am required to use the…
Godwin
  • 608
  • 1
  • 9
  • 14
1
vote
0 answers

How to exclude particular Dart files while compilation in flutter

I'm trying to run my flutter-app in web. So I created a web folder and added all the necessary things. Since I'm using the objectBox in multiple dart files, I'm getting error based on ObjectBox. So what I did to find the issue was, In the main.dart…
Guhan
  • 35
  • 6
1
vote
0 answers

embed a tiktok video onto an app page with flutter?

Video player, webview, custom widgets on pubdev, all seem to be failing me on what should be a simple problem... how do i display a tiktok video on a page using flutter widgets? Embarassed to admit how long I have tried to code this. I have tried…
alex2230
  • 11
  • 1