Skip to content

Hot restart does not set flavor #8250

Closed as duplicate of#165803
Closed as duplicate of#165803
@Tetr4

Description

@Tetr4

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
}

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions