Skip to content

PlatformDispatcher.instance.engineId returns null after hot restart #173474

@HosseinYousefi

Description

@HosseinYousefi

The first time we run the app engineId is populated with an integer when running on Android but hot restarting causes it to return null.

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    print('engineId: ${PlatformDispatcher.instance.engineId}');
  }
  // ...
}

cc @knopp

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions