buildPresenter method
Build the page content.
Implementation
@override
Widget buildPresenter(BuildContext context) {
_safeAreaTop = MediaQuery.viewPaddingOf(context).top;
return Scaffold(
backgroundColor: const Color(0xFF000000),
resizeToAvoidBottomInset: false,
body: Stack(
children: [
Positioned.fill(
child: ListenableBuilder(
listenable: _chromeHeight,
builder: (ctx, _) => LayoutBuilder(
builder: (ctx2, constraints) {
_lastBody = constraints.biggest;
WidgetsBinding.instance.addPostFrameCallback((_) {
_publish();
});
return editor.buildPresenter(ctx2);
},
),
),
),
Positioned(
left: 0,
right: 0,
bottom: 0,
child: OnSize(
onSize: (s) {
_chromeMeasured = true;
_chromeHeight.value = s.height;
},
child: SafeArea(
top: false,
child: AnimatedToolChrome(child: editor.controls!),
),
),
),
],
),
);
}