Welcome to the Flutter feedback portal. We’re happy you’re here! If you have feedback on how to improve the Flutter, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
How to reproduce:
Open a dialog using showDialog. The dialog should contain an SfRadialGauge with a MarkerPointer.
See reproducible example below.
What's happening:
If the mouse cursor is sitting at the position where the radial gauge widget is getting created, the following exception is thrown:
LateError (LateInitializationError: Field 'pointerRect' has not been initialized.)
When it's happening:
Managed to reproduce it on Flutter Desktop (MacOS and Windows) and Flutter version 3.13.6
The exception is only thrown, if the SfRadialGauge widget is created at a position, where the mouse is currently sitting. It appears like the widget is trying to process a mouse hovering event before it is fully initialized.
If the mouse isn't sitting on top of the widget at the moment of dialog creation, nothing happens and the gauge can be used without any issues afterwards.
Example:showDialog(context: context,builder: (context) => Center(child: SizedBox(width: 150,height: 150,child: SfRadialGauge(axes: [RadialAxis(minimum: 0,maximum: 360,pointers: const [MarkerPointer(value: 200,enableDragging: true,),],),],),),),);