在写flutter代码的时候,出现标题所述的警告,只需要在代码上方添加以下注释即可消除警告 // ignore: strong_mode_top_level_function_literal_block