defaultStyleAttributesModel static method
Future<MonaStyleAttributesModel>
defaultStyleAttributesModel(
- String appId,
- String documentID
)
Implementation
static Future<MonaStyleAttributesModel> defaultStyleAttributesModel(
String appId, String documentID) async {
var headerColor1To3 = EliudColors.orange1;
var headerColor4To5 = EliudColors.white;
var defaultColor = EliudColors.white;
var highlightColor = EliudColors.orange1;
var linkColor = EliudColors.orange1;
var styleName = documentID;
var fontTools = FontTools(
styleName: styleName,
headerColor1To3: headerColor1To3,
headerColor4To5: headerColor4To5,
defaultColor: defaultColor,
highlightColor: highlightColor,
linkColor: linkColor);
return MonaStyleAttributesModel(
documentID: documentID,
appId: appId,
appBackground: pageBG(),
listBackground: pageBG(),
formBackground: pageBG(),
formGroupTitleColor: EliudColors.red,
formFieldTextColor: EliudColors.white,
formFieldHeaderColor: EliudColors.red,
formFieldFocusColor: EliudColors.red,
appBarBG: appBarBG(),
appBarIconColor: EliudColors.white,
appBarSelectedIconColor: EliudColors.red,
appBarMenuBackgroundColor: EliudColors.lightRed,
bottomNavigationBarBG: bottomNavigationBarBG(),
listTextItemColor: EliudColors.white,
floatingButtonForegroundColor: EliudColors.white,
floatingButtonBackgroundColor: EliudColors.red,
dividerColor: EliudColors.red,
h1: fontTools.getFont(
FontTools.key(styleName, FontTools.latoLabel, FontTools.h1Label)),
h2: fontTools.getFont(
FontTools.key(styleName, FontTools.latoLabel, FontTools.h2Label)),
h3: fontTools.getFont(
FontTools.key(styleName, FontTools.latoLabel, FontTools.h3Label)),
h4: fontTools.getFont(
FontTools.key(styleName, FontTools.latoLabel, FontTools.h4Label)),
h5: fontTools.getFont(
FontTools.key(styleName, FontTools.latoLabel, FontTools.h5Label)),
fontHighlight1: fontTools.getFont(FontTools.key(
styleName, FontTools.latoLabel, FontTools.highlightLabel1)),
fontHighlight2: fontTools.getFont(FontTools.key(
styleName, FontTools.latoLabel, FontTools.highlightLabel2)),
fontLink: fontTools.getFont(
FontTools.key(styleName, FontTools.latoLabel, FontTools.linkLabel)),
fontSmallText: fontTools.getFont(
FontTools.key(styleName, FontTools.latoLabel, FontTools.smallLabel)),
fontText: fontTools.getFont(
FontTools.key(styleName, FontTools.latoLabel, FontTools.normalLabel)),
backgroundColorHomeMenu: homeMenuPopupBGColor(),
drawerBG: drawerBG(),
drawerHeaderBG: drawerHeaderBG(),
profileDrawerBG: profileDrawerBG(),
profileDrawerHeaderBG: profileDrawerHeaderBG(),
textFieldHeader: fontTools.getFont(FontTools.key(styleName,
FontTools.dancingScriptLabel, FontTools.textFieldHeaderLabel)),
routeBuilder: PageTransitionAnimation.fadeRoute,
routeAnimationDuration: 800,
topicContainerBackground: pageBG(),
actionContainerBackground: pageBG(),
dialogBackgroundColor: EliudColors.dialogGray,
dialogSeperatorColor: EliudColors.red,
popupMenuButtonColor: EliudColors.dialogGray,
textBubbleBackgroundColor: EliudColors.black,
dropdownButtonnColor: EliudColors.black,
listTileColor: EliudColors.dialogGray,
);
}