getAppBar method

Widget? getAppBar()

获取自定义appbar 示例

Implementation

Widget? getAppBar() {
  return Row(
    mainAxisAlignment: MainAxisAlignment.spaceBetween,
    children: [
      Container(
        width: 30,
        height: 50,
        color: Colors.yellow,
      ),
      const Text(
        '完全自定义的导航栏',
        style: TextStyle(fontSize: 16),
      ),
      Container(
        width: 30,
        height: 50,
        color: Colors.red,
      ),
    ],
  );
}