【问题标题】:How do I replace the hamburger icon of a drawer with a CircleAvatar in Flutter? [closed]如何在 Flutter 中将抽屉的汉堡图标替换为 CircleAvatar? [关闭]
【发布时间】:2020-11-27 16:54:44
【问题描述】:

我正在尝试复制它。

【问题讨论】:

  • 使用 appBar 的“领先”属性。

标签: android ios flutter mobile-application


【解决方案1】:
Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title:Text('hi'),
        leading: IconButton(
          icon: Icon(Icons.accessible),
          onPressed: () => Scaffold.of(context).openDrawer(),
        ),
      ),
);

你去吧..我会工作的。

【讨论】:

  • 感谢您的及时回复 Vinay,它帮助了
猜你喜欢
  • 2015-12-24
  • 1970-01-01
  • 1970-01-01
  • 2018-11-07
  • 1970-01-01
  • 2016-02-02
  • 1970-01-01
  • 2017-01-21
  • 2022-08-15
相关资源
最近更新 更多