build method

  1. @override
Widget build(
  1. BuildContext context,
  2. Route content
)
override

Builds the layout widget tree for the given content item.

This method is called by the content system to render the content item with the specified layout.

Implementation

@override
Widget build(BuildContext context, vf.Route content) {
  return SingleItemRouteScaffold(
    content: content,
    appBar: showAppBar
        ? AppBar(
            title: Text(content.title),
            actions: actions
                ?.map(
                  (e) => IconButton(
                      onPressed: () => e.action?.execute(context),
                      icon: Icon(e.icon.iconData)),
                )
                .toList(growable: false),
          )
        : null,
    useSafeArea: useSafeArea,
  );
}