: flex, fit: FlexFit.tight, child: child);
}
Expanded 组件 在 Row 组件 中会自动填充水平方向上的剩余空间 ;
Expanded 组件 在 Column...style: TextStyle(color: Colors.yellow),
),
),
),
],
),
// 空行
执行效果 :
第一个组件是 Row 中没有使用...appBar: AppBar(title: Text('布局组件示例'),),
// 底部导航栏 BottomNavigationBar 设置
// items...currentIndex: _currentSelectedIndex,
// 设置点击底部导航栏的回调事件 , index 参数是点击的索引值...: [
Container( // 对应底部导航栏设置选项卡
// 设置容器的装饰器 , BoxDecoration 是最常用的装饰器