appBar function

PreferredSizeWidget appBar(
  1. AppModel app,
  2. BuildContext context, {
  3. required AppbarHeaderAttributes headerAttributes,
  4. required MemberModel? member,
  5. required String pageName,
  6. List<AbstractMenuItemAttributes>? items,
  7. BackgroundModel? backgroundOverride,
  8. RgbModel? menuBackgroundColorOverride,
  9. RgbModel? selectedIconColorOverride,
  10. RgbModel? iconColorOverride,
  11. VoidCallback? openDrawer,
  12. Key? key,
})

Implementation

PreferredSizeWidget appBar(AppModel app, BuildContext context,
        {required AppbarHeaderAttributes headerAttributes,
        required MemberModel? member,
        required String pageName,
        List<AbstractMenuItemAttributes>? items,
        BackgroundModel? backgroundOverride,
        RgbModel? menuBackgroundColorOverride,
        RgbModel? selectedIconColorOverride,
        RgbModel? iconColorOverride,
        VoidCallback? openDrawer,
        Key? key}) =>
    StyleRegistry.registry()
        .styleWithApp(app)
        .frontEndStyle()
        .appBarStyle()
        .appBar(app, context,
            headerAttributes: headerAttributes,
            member: member,
            pageName: pageName,
            items: items,
            backgroundOverride: backgroundOverride,
            menuBackgroundColorOverride: menuBackgroundColorOverride,
            selectedIconColorOverride: selectedIconColorOverride,
            iconColorOverride: iconColorOverride,
            openDrawer: openDrawer,
            key: key);