If no iconPath is set from FlutterPlatformAlert.showCustomAlert, the string fallbacks to an empty string in the platform channel call. This causes dialog layout to be broken on Linux.
Equivalent Windows implementation checks for an empty string as opposed to a nullptr. While current Linux implementation was checking for a nullptr.
If no
iconPath
is set fromFlutterPlatformAlert.showCustomAlert
, the string fallbacks to an empty string in the platform channel call. This causes dialog layout to be broken on Linux.Equivalent Windows implementation checks for an empty string as opposed to a
nullptr
. While current Linux implementation was checking for a nullptr.https://github.com/zonble/flutter_platform_alert/blob/13a2c28e6dc9b7424b3aa1d92f22d29189ef8b3d/windows/flutter_platform_alert_plugin.cpp#L376
Before:
Now:
Equivalent code: