build method
- @override
- BuildContext context
Build the app widget tree for stage 2, the "/site" navigation path.
This replaces the entire app widget tree so it starts at
PlatformScaffold
.
The samInject
method is used to inject the SamModel
_site
into the
widget tree.
Implementation
@override
Widget build(BuildContext context) {
//WidgetsBinding.instance.addPostFrameCallback((_) => {_site.logger.addLogLine("Site has been prepared")});
log("build PlatformScaffold ${context.runtimeType}");
return PlatformScaffold(
appBar: PlatformAppBar(
title: Text(widget.title,),
cupertino: (_, __) => CupertinoNavigationBarData(transitionBetweenRoutes: false,),
),
body: Center( child: samInject(_site), )
);
}