Adds an appbar on a given layout.
See CreateAppBar, CreateAppBarElegant and CreateAppBarModern for a full documentation. The parameters p1, p2 and p3 depends on the type of appbar. Refer to each type for more info. Example for CreateAppBar and CreateAppBarElegant 'ps' is 'title', 'p2' is 'logoIcon' and 'p3' is 'controls'. For CreateAppBarModern 'p1' is 'hint','p2' is 'controlIcon' and 'p3' is 'color'.