如果我能在目标页面加载之前显示快餐栏,我真的很高兴。我目前的快餐栏代码在这里:
final Snackbar snackbar = Snackbar.make(parent_view_chapter, "Redirecting to another page....please wait", Snackbar.LENGTH_SHORT);
snackbar.show();
我的预期结果-在snackbar关闭后,页面导航到我的另一个页面。
我如何才能做到这一点?我应该把零食条码放在哪里?@Override method...is it here我应该把零食条码放在哪里?
@Ov
enter image description here如何从量角器脚本中检索快餐栏容器中的值(在angular应用程序中使用)。有一个登录页面,当给出错误的凭据时,会弹出一个使用快餐栏的代码容器,显示消息"Invalid credentials"和Ok按钮。我想要捕获无效凭据的消息。如何使用量角器脚本
当api调用返回时,我需要显示一个快餐栏。问题是我在api调用完成之前就弹出了路由。因此,我得到以下错误: [VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: Looking up a deactivated widget's ancestor is unsafe.
At this point the state of the widget's element tree is no longer stable.
To safely refer to a widget's ancestor in its disp