Skip to content

AppBar

Material

demo

appbar-material.png

code
Terminal window
import 'package:flutter/material.dart';
AppBar(
title: const Text('Page'),
actions: const [
Icon(Icons.add),
],
leading: const Icon(Icons.arrow_back),
)

Cupertino

demo

appbar-cupertino.png

code
Terminal window
import 'package:flutter/cupertino.dart';
CupertinoNavigationBar(
middle: Text('Page'),
trailing: Icon(CupertinoIcons.add),
leading: Icon(CupertinoIcons.back),
);

Further reading