build method
Implementation
@override
FWidget<T> build() => FColumn(app,
children: [
FRow(app,
children: [
FButton(app,
onClickFn: (_) => setState(() => hidden = !hidden),
child: FLabel(app, text: '...'),
),
if (!hidden) ...[
FSized.shrink(app, width: 8),
FButton(app,
onClickFn: (_) => setState(() => currentTab = .entities),
child: FPadding.symmetric(app, 4, 8,
child: FLabel(app, text: 'Entities'),
),
),
FSized.shrink(app, width: 8),
FButton(app,
onClickFn: (_) => setState(() => currentTab = .watch),
child: FPadding.symmetric(app, 4, 8,
child: FLabel(app, text: 'Watch'),
),
),
],
],
),
FExpanded(app,
child: hidden ? FSized.shrink(app) : FPadding.all(app, 8,
child: FContainer(app,
backgroundColor: .ASH..a = 100,
child: buildDebugView()
),
),
),
],
);