CroppingBottomBar.fromJson constructor
CroppingBottomBar.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CroppingBottomBar.fromJson(Map<String, dynamic> json) =>
CroppingBottomBar(
detectButton: json.containsKey("detectButton")
? BarButtonConfiguration.fromJson(
json["detectButton"] as Map<String, dynamic>)
: BarButtonConfiguration(
title: StyledText(
text: "?croppingDetectButtonTitle",
color: ScanbotColor("?sbColorOnPrimary")),
accessibilityDescription:
"?accessibilityDescriptionCroppingDetectButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
icon: IconStyle(color: ScanbotColor("?sbColorOnPrimary"))),
rotateButton: json.containsKey("rotateButton")
? BarButtonConfiguration.fromJson(
json["rotateButton"] as Map<String, dynamic>)
: BarButtonConfiguration(
title: StyledText(
text: "?croppingRotateButtonTitle",
color: ScanbotColor("?sbColorOnPrimary")),
accessibilityDescription:
"?accessibilityDescriptionCroppingRotateButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
icon: IconStyle(color: ScanbotColor("?sbColorOnPrimary"))),
resetButton: json.containsKey("resetButton")
? BarButtonConfiguration.fromJson(
json["resetButton"] as Map<String, dynamic>)
: BarButtonConfiguration(
title: StyledText(
text: "?croppingResetButtonTitle",
color: ScanbotColor("?sbColorOnPrimary")),
accessibilityDescription:
"?accessibilityDescriptionCroppingResetButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
icon: IconStyle(color: ScanbotColor("?sbColorOnPrimary"))),
);