ActionBarConfiguration constructor

ActionBarConfiguration({
  1. RoundButton? flashButton,
  2. RoundButton? zoomButton,
  3. RoundButton? flipCameraButton,
})

Implementation

ActionBarConfiguration({
  RoundButton? flashButton,
  RoundButton? zoomButton,
  RoundButton? flipCameraButton,
})  : flashButton = flashButton ??
          RoundButton(
              visible: true,
              backgroundColor: ScanbotColor("?sbColorSurfaceHigh"),
              foregroundColor: ScanbotColor("?sbColorOnPrimary"),
              activeBackgroundColor: ScanbotColor("?sbColorWarning"),
              activeForegroundColor: ScanbotColor("#1C1B1F")),
      zoomButton = zoomButton ??
          RoundButton(
              visible: true,
              backgroundColor: ScanbotColor("?sbColorSurfaceHigh"),
              foregroundColor: ScanbotColor("?sbColorOnPrimary"),
              activeBackgroundColor: ScanbotColor("?sbColorSurfaceHigh"),
              activeForegroundColor: ScanbotColor("?sbColorOnPrimary")),
      flipCameraButton = flipCameraButton ??
          RoundButton(
              visible: true,
              backgroundColor: ScanbotColor("?sbColorSurfaceHigh"),
              foregroundColor: ScanbotColor("?sbColorOnPrimary"),
              activeBackgroundColor: ScanbotColor("?sbColorSurfaceHigh"),
              activeForegroundColor: ScanbotColor("?sbColorOnPrimary"));