Scaffold

225 阅读1分钟
Scaffold({
    Key key,
    this.appBar, // 导航栏
    this.body, // 设置页面内容区域组件
    this.floatingActionButton, // 设置显示在上层区域的按钮,默认位置位于右下角
    this.floatingActionButtonLocation, // 设置floatingActionButton的位置
    this.floatingActionButtonAnimator,
    this.persistentFooterButtons, // 一组显示在脚手架底部的按钮(在bottomNavigationBar底部导航
    this.drawer, // 左边侧边栏
    this.endDrawer, // 右边侧边栏
    this.bottomNavigationBar, // 底部导航栏v
    this.bottomSheet, // 底部抽屉栏
    this.backgroundColor, // 页面颜色
    this.resizeToAvoidBottomPadding, // 控制界面内容 body 是否重新布局来避免底部被覆盖,比如当键盘显示的时候,重新布局避免被键盘盖住内容
    this.resizeToAvoidBottomInset,
    this.primary = true, // 脚手架是否显示在最低部
    this.drawerDragStartBehavior = DragStartBehavior.start,
    this.extendBody = false, // 如果为true,并且指定了bottomNavigationBar或persistentFooterButtons,则body将延伸到Scaffold的底部,而不是仅延伸到bottomNavigationBar或persistentFooterButtons的顶部
    this.extendBodyBehindAppBar = false,
    this.drawerScrimColor,
    this.drawerEdgeDragWidth,
  })