79832852

Date: 2025-11-28 19:13:41
Score: 0.5
Natty:
Report link

For debug and release mode, use this way until Flutter provides an official way

if (g_file_test("assets", G_FILE_TEST_IS_DIR))
  {
    gtk_window_set_icon_from_file(window, "assets/images/icon.png", NULL); // For debug mode
  }
  else
  {
    gtk_window_set_icon_from_file(window, "data/flutter_assets/assets/images/icon.png", NULL); // For release mode
  }

You can also try with hover https://github.com/flutter/flutter/issues/53229#issuecomment-660040567

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Ali Yar Khan