TopBarConfiguration constructor

TopBarConfiguration({
  1. StyledText? title,
  2. TopBarMode mode = TopBarMode.SOLID,
  3. StatusBarMode statusBarMode = StatusBarMode.LIGHT,
  4. ScanbotColor? backgroundColor,
  5. ButtonConfiguration? cancelButton,
})

Implementation

TopBarConfiguration({
  StyledText? title,
  this.mode = TopBarMode.SOLID,
  this.statusBarMode = StatusBarMode.LIGHT,
  ScanbotColor? backgroundColor,
  ButtonConfiguration? cancelButton,
})  : title = title ??
          StyledText(
              visible: false,
              text: "Scan Item",
              color: ScanbotColor("?sbColorOnPrimary")),
      backgroundColor = backgroundColor ?? ScanbotColor("?sbColorPrimary"),
      cancelButton = cancelButton ??
          ButtonConfiguration(
              text: "Cancel",
              background: BackgroundStyle(
                  strokeColor: ScanbotColor("#00000000"),
                  fillColor: ScanbotColor("#00000000"),
                  strokeWidth: 0.0),
              foreground:
                  ForegroundStyle(color: ScanbotColor("?sbColorOnPrimary")));