CroppingConfiguration constructor
CroppingConfiguration({
- String version = "1.0",
- String screen = "CroppingConfiguration",
- Palette? palette,
- required String documentUuid,
- required String pageUuid,
- CroppingTextLocalization? localization,
- CroppingAppearanceConfiguration? appearance,
- CroppingScreenConfiguration? cropping,
- DocumentAnalysisMode documentAnalysisMode = DocumentAnalysisMode.UNFILTERED_DOCUMENT,
Implementation
CroppingConfiguration({
this.version = "1.0",
this.screen = "CroppingConfiguration",
Palette? palette,
required this.documentUuid,
required this.pageUuid,
CroppingTextLocalization? localization,
CroppingAppearanceConfiguration? appearance,
CroppingScreenConfiguration? cropping,
this.documentAnalysisMode = DocumentAnalysisMode.UNFILTERED_DOCUMENT,
}) : palette = palette ??
Palette(
sbColorPrimary: ScanbotColor("#C8193C"),
sbColorPrimaryDisabled: ScanbotColor("#F5F5F5"),
sbColorNegative: ScanbotColor("#FF3737"),
sbColorPositive: ScanbotColor("#4EFFB4"),
sbColorWarning: ScanbotColor("#FFCE5C"),
sbColorSecondary: ScanbotColor("#FFEDEE"),
sbColorSecondaryDisabled: ScanbotColor("#F5F5F5"),
sbColorOnPrimary: ScanbotColor("#FFFFFF"),
sbColorOnSecondary: ScanbotColor("#C8193C"),
sbColorSurface: ScanbotColor("#FFFFFF"),
sbColorOutline: ScanbotColor("#EFEFEF"),
sbColorOnSurfaceVariant: ScanbotColor("#707070"),
sbColorOnSurface: ScanbotColor("#000000"),
sbColorSurfaceLow: ScanbotColor("#00000026"),
sbColorSurfaceHigh: ScanbotColor("#0000007A"),
sbColorModalOverlay: ScanbotColor("#000000A3")),
localization = localization ?? CroppingTextLocalization(),
appearance = appearance ?? CroppingAppearanceConfiguration(),
cropping = cropping ?? CroppingScreenConfiguration();