build static method
- BuildContext context
Returns the Widgets of this NavigationSection.
Implementation
static List<Widget> build(BuildContext context) {
return [
Headlines(
children: [
(
headline: 'CustomAppBar',
widget: SizedBox(
height: 60,
child: CustomAppBar(
top: false,
title: const Text('Title'),
leading: [StyledBackButton(onPressed: () {})],
actions: const [SizedBox(width: 60)],
),
),
),
(
headline: 'CustomAppBar(leading, actions)',
widget: SizedBox(
height: 60,
child: CustomAppBar(
top: false,
title: const Row(children: [Text('Title')]),
padding: const EdgeInsets.only(left: 4, right: 20),
leading: [StyledBackButton(onPressed: () {})],
actions: [
AnimatedButton(
onPressed: () {},
child: const SvgIcon(SvgIcons.chatVideoCall),
),
const SizedBox(width: 28),
AnimatedButton(
key: const Key('AudioCall'),
onPressed: () {},
child: const SvgIcon(SvgIcons.chatAudioCall),
),
],
),
),
),
],
),
Headline(
headline: 'CustomNavigationBar',
child: ObxValue((p) {
return CustomNavigationBar(
currentIndex: p.value,
onTap: (t) => p.value = t,
items: [
const CustomNavigationBarItem.link(),
const CustomNavigationBarItem.work(),
const CustomNavigationBarItem.contacts(),
CustomNavigationBarItem.chats(),
CustomNavigationBarItem.menu(),
],
);
}, RxInt(0)),
),
const Headline(child: BackgroundPreview(null)),
Headline(
child: BigAvatarWidget.myUser(null, onDelete: () {}, onUpload: () {}),
),
];
}