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
0 answers

how to auto increment id key in Flutter Hive

I'm trying to make a method to add entries in a Hive box but after adding my id key is always null. now I know I can change the key at onPressed() by: getIt().addTodo(Todo( id: 0, //…
1
vote
0 answers

flutter_webview crashes when height over 2048 on Android devices

I am trying to display articles on my flutter app from the web, so I am using flutter_webview wrapped into a container that takes the height of the page from the JavaScript onPageFinished, the height can be too big and causes the app to crash, for…
1
vote
0 answers

how to receive custom header passed on flutter app before initialized

I am trying to make a flutter web app, and when a user clicks a link to the flutter web app including authToken in the header I want to pass authToken to the flutter app and let the app do the authentication when the process is going in…
dfassf
  • 142
  • 10
1
vote
4 answers

Text inside container was overflow when minimize screen in flutter

I have a container with width MediaQuery.of(context).size.width / 1.75.When I minimize screen size text inside the container is overflowing. This is the output I got now: class ProfileTopPortion extends StatelessWidget { const…
Developer
  • 148
  • 8
1
vote
1 answer

Target dart2js failed, file not found issue

Hi I am trying to run flutter build web --no-sound-null-safety but I am getting the below error. I followed the following steps : after running flutter build web --no-sound-null-safety I got the error On looking at various forums I ran flutter…
akm
  • 149
  • 1
  • 9
1
vote
0 answers

Where are all the settings written when we disable or enable specific platform for flutter

I just disabled a few platforms (android, ios, macos) for my new flutter project. I used the command flutter config --no-disable- and here is the output. I want to know if there is any configuration file that flutter writes to store these…
1
vote
1 answer

Flutter PaginatedDataTable causing overflow when browser is resized

I have a webpage that is enclosed in a List with Scrollbar. The body is a SideNavigationBar and the content. The content portion is PagingatedDataTable. When I resize the browser, I see that scroll works. However, the PaginatedDataTable always throw…
1
vote
1 answer

Width of container is not working inside SliverToBoxAdapter in CustomScrollView

I have a CustomScrollView contains a SliverToBoxAdapter.I gave width as MediaQuery.of(context).size.width / 1.75.But it takes full width of screen . enter image description here. Width of container is working if it is placed outside of…
Developer
  • 148
  • 8
1
vote
1 answer

Flutter Web App with Firebase Not caching credentials

I have a flutter based web app which uses Firebase for phone authentication. I am able to authenticate using the firebase. The problem arises when I refresh or reload the app. It starts from the scratch asking me to enter my mobile no and then the…
iShah
  • 119
  • 2
  • 14
1
vote
1 answer

TypeError: this._didCreateEngineInitializerResolve is not a function

I updated Flutter SDK yesterday and since then my web app doesn't run. I just see a white screen and in the console/log I see this error: Do not call didCreateEngineInitializer by hand. Start with loadEntrypoint instead. Uncaught (in promise)…
Danish Ajaib
  • 83
  • 1
  • 3
  • 14
1
vote
1 answer

open an installed windows or mac application from flutter web

I actually want to open installed AutoCad desktop application on the click of a button present in my flutter web application. I searched for this on internet but couldn't find any answer. 1. Is there any way to open installed application on windows…
Bilal Saeed
  • 2,092
  • 8
  • 31
1
vote
0 answers

Flutter web get loading error after deployed on Jenkins

When deploying to Jenkins and then accessing the website, it was just loading. Chrome console: "Refused to execute script from 'https://******.com/web_entrypoint.dart.js' because its MIME type ('text/html') is not executable, and strict MIME type…
1
vote
0 answers

flutter web get refreshed completely except a single page

i am creating a website on flutter. I have and issue that when refresh my current page like i am on 3rd page, it refreshes the whole website and firstly goes on login screen and then goes to the home screen. after refreshing it does not comes back…
1
vote
0 answers

Error while initializing Firebase in Flutter

My main.dart: void main() async { await preinit(); await di().useEmulator(); await di().useEmulator(); await initApp(); } Part of my FirebaseAuthService: @singleton class FirebaseAuthService…
MaryLitv21
  • 379
  • 1
  • 12
1
vote
1 answer

Accessing text selected in SelectionArea Flutter

I am using SelectionArea on top of a ListView with Texts. Is there a way to access the selected text in the SelectionArea Class? Looking for a callback method like onSelectionChanged from the SelectableText Class. class HomePage extends…
Mohammad Amir
  • 352
  • 2
  • 12