Description
I have set a build flavor (--flavor
) in my run configuration, which works fine with a normal build.
However when performing a hot restart it is not set anymore. This used to work previously.
To test this:
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
void main() {
debugPrint(appFlavor); // This prints null on hot restart
}