lukas-h / onyx

MIT License
0 stars 0 forks source link

Enable building of extensions: #49

Open lukas-h opened 4 months ago

lukas-h commented 4 months ago
enum ExtensionType{
    popup,
    sidebar,
    // …
}

class PageExtension {
    PageExtension({
        this.activeOnPages,
        this.activeOnJournals,
        this.extensionType,
    });
    Widget buildControlButton(BuildContext context, PageState state, bool opened);

    Widget buildBody(BuildContext context, PageState state); // only builds when opened
}