Questions tagged [flutter-hotreload]

27 questions
0
votes
1 answer

Flutter: Hot reload and hot restart not working after connecting to firebase background functionality

Flutter hot reload and hot restart stop working after doing the minimum to connect my app to a firebase project. I have connected three different flutter projects to three different firebase projects and none of them have allowed me to hot reload or…
chris
  • 3
  • 1
0
votes
1 answer

go_router package is not supporting hot reload on chrome in Flutter

Can you please help me with a solution to a problem that I am facing using go_router package in my flutter application. Sample code: import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; final _router = GoRouter( …
0
votes
0 answers

Why Flutter Web Hot Reload causes isolateRef error

I am using the Chrome emulator, and sometimes when I Hot Reload my application, I start getting errors even if I haven't changed anything in the code. Here's the error: DebugService: Error serving requestsError: NoSuchMethodError: The getter…
Joel Castro
  • 485
  • 6
  • 20
0
votes
0 answers

Flutter Hot reload is not working when Bloc Pattern

I like flutter hot reload. I use flutter bloc and auto route. but it doesn't work for me main.dart file void main() { WidgetsFlutterBinding.ensureInitialized(); configureInjection(Environment.prod); runApp(const…
0
votes
2 answers

How to Hot Reload flutter when running from xcode

I'm trying to do Hot Reload when running flutter code from xcode but nothing I seem to do works. I see a console within xcode. I can see my logs there but I don't see the normal "Flutter run commands" output. When I type "r" or "R" there it just…
0
votes
0 answers

Flutter-web vscode container hot reload

I have been trying to perform a hot-reload for my flutter-web project. Been struggling to get hot restart functionality enabled when running via viscose dev-containers. I tried: Having the flutter run -d at the entry point. Executing the debug via…
P Satish C
  • 21
  • 1
0
votes
2 answers

Widget not updating in flutter?

This method is not updating the widget Widget displayAppropriateWidget() { if (isParsedCorrectly) { _widgetToDisplay = displaySecondHalf; } else { _widgetToDisplay = displayFirstHalf; } setState(() {}); return _widgetToDisplay; } Even when the…
kartik
  • 93
  • 9
0
votes
3 answers

My values are being loaded only after hot reloading

I have been working on a weather app that displays live weather data. I am relatively new to flutter and dart. When I run the code, the app builds and instead of showing the three values on the screen, all three values are displayed as null. But…
0
votes
1 answer

Using StatefulWidget List having FutureBuilder as child shows no data till i hot reload and then calls future with no data immediately

I have a stateful widget which will show list of products, data will be fetched from api so I used future builder. Here problem is I can see data in log but not on widget class, it shows length 0 of list but as soon as I reload data shows for second…
0
votes
2 answers

Assets do not load but when I hot reload

I am new to flutter. I am getting image from backend and displaying those images on the screen using Hero and FadeInImage. I ave added the hyperlinks in the images and generating the list of images after hitting the API. child: Hero( …
doc
  • 828
  • 2
  • 6
  • 18
0
votes
1 answer

Flutter secure routes with a flutter-fire authentication guard and avoid unnecessary rebuilds

I currently face an issue where I route to an authentication guard view as my default route. My authentication guard view: import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import '../models/user.dart'; import…
0
votes
1 answer

Flashing Flutter App from VSCode (Android)

Is there a way to install the resultant APK to a phone without using "Hot Reload"? The problem being that once the App restarts and the phone is no longer connected to the computer, the recent changes to the App are removed.
1
2