getFontDesignSystem_button static method

String getFontDesignSystem_button(
  1. LevelDS levelDS,
  2. String? custom
)

Implementation

static String getFontDesignSystem_button(LevelDS levelDS , String? custom ) {

  //mobile enter custom
  if ( custom != null  ) return custom;

  //default
  var d = DSFont.button_large;

  //choose
  if( levelDS == LevelDS.parent ) {
    d = DSFont.button_large;
  }
  if( levelDS == LevelDS.l1 ) {
    d = DSFont.button_large;
  }
  if( levelDS == LevelDS.l2 ) {
    d = DSFont.button_small;
  }
  if( levelDS == LevelDS.l3 ) {
    d = DSFont.button_small;
  }
  if( levelDS == LevelDS.l4 ) {
    d = DSFont.button_small;
  }

  return d;
}