Skip to content

Commit f29bd81

Browse files
added settings page, update to latest release
1 parent 57fcc01 commit f29bd81

14 files changed

+1532
-99
lines changed

android/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
2929
namespace "com.example.docutain_sdk_example_flutter"
30-
compileSdkVersion flutter.compileSdkVersion
30+
compileSdkVersion 34
3131
ndkVersion flutter.ndkVersion
3232

3333
compileOptions {
@@ -45,7 +45,7 @@ android {
4545

4646
defaultConfig {
4747
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
48-
applicationId "de.docutain.sdk.sample"
48+
applicationId "com.example.docutain_sdk_example_flutter"
4949
// You can update the following values to match your application needs.
5050
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
5151
minSdkVersion 21

assets/icons/settings_black.png

1.24 KB
Loading

assets/icons/settings_white.png

1.28 KB
Loading

lib/l10n/app_de.arb

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"documentScanner": "Dokumentenscanner",
1111
"generatePdf": "PDF-Dokument erstellen",
1212
"generatePdfDesc": "Generiere ein durchsuchbares (mit erkanntem Text) PDF-Dokument aus den gescannten Seiten oder importierten Bildern.",
13+
"settings": "Einstellungen",
14+
"settingsDesc": "Konfigurieren Sie Farbe, Scanner und Bearbeitung des SDK.",
1315
"ibanHint": "IBAN",
1416
"inputOptionImage": "Bild importieren",
1517
"inputOptionPdf": "PDF importieren",

lib/l10n/app_en.arb

+84-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"documentScanner": "Document Scanner",
1111
"generatePdf": "Generate PDF Document",
1212
"generatePdfDesc": "Generate a searchable (includes recognized text) PDF document out of the scanned pages or imported image.",
13+
"settings": "Settings",
14+
"settingsDesc": "Configure color, scanner and editing of the SDK.",
1315
"ibanHint": "IBAN",
1416
"inputOptionImage": "Image Import",
1517
"inputOptionPdf": "PDF Import",
@@ -25,5 +27,86 @@
2527
"textRecognition": "Text Recognition (OCR)",
2628
"textRecognitionDesc": "Run OCR on the previously scanned or imported (PDF or Image) document and get the recognized text.",
2729
"titleImportOption": "First, scan or import a document",
28-
"zipcodeHint": "Zipcode"
30+
"zipcodeHint": "Zipcode",
31+
32+
"color_primary_title": "ColorPrimary",
33+
"color_primary_subtitle": "Used to tint progress indicators and the dialog buttons",
34+
35+
"color_secondary_title": "ColorSecondary",
36+
"color_secondary_subtitle": "Used to tint selectable controls and the capture button",
37+
38+
"color_on_secondary_title": "ColorOnSecondary",
39+
"color_on_secondary_subtitle": "Used to tint elements that reside on ColorSecondary, like the icon of the capture",
40+
41+
"color_scan_layout_title": "ColorScanButtonsLayoutBackground",
42+
"color_scan_layout_subtitle": "Used to tint the background of the layout containing the buttons of the scan layout, like the capture button or torch button",
43+
44+
"color_scan_foreground_title": "ColorScanButtonsForeground",
45+
"color_scan_foreground_subtitle": "Used to tint the foreground of the buttons of the scan layout, like the torch button",
46+
47+
"color_scan_polygon_title": "ColorScanPolygon",
48+
"color_scan_polygon_subtitle": "Used to tint the polygon overlay which highlights the currently detected document",
49+
50+
"color_bottom_bar_background_title": "ColorBottomBarBackground",
51+
"color_bottom_bar_background_subtitle": "Used to tint the bottom toolbar background of the image editing page",
52+
53+
"color_bottom_bar_forground_title": "ColorBottomBarForeground",
54+
"color_bottom_bar_forground_subtitle": "Used to tint the buttons within the bottom toolbar of the image editing page",
55+
56+
"color_top_bar_background_title": "ColorTopBarBackground",
57+
"color_top_bar_background_subtitle": "Used to tint the top toolbar background",
58+
59+
"color_top_bar_forground_title": "ColorTopBarForeground",
60+
"color_top_bar_forground_subtitle": "Used to tint the elements contained in the top toolbar, like buttons and titles",
61+
62+
"capture_mode_setting_title": "AllowCaptureModeSetting",
63+
"capture_mode_setting_subtitle": "If activated, the document scanner toolbar will display an item that allows the user to switch between automatic and manual camera triggering",
64+
65+
"auto_capture_setting_title": "AutoCapture",
66+
"auto_capture_setting_subtitle": "If activated, the camera will capture the image automatically at the right moment",
67+
68+
"auto_crop_setting_title": "AutoCrop",
69+
"auto_crop_setting_subtitle": "If activated, image gets automatically cropped if document was detected. This applies only when importing",
70+
71+
"multi_page_setting_title": "MultiPage",
72+
"multi_page_setting_subtitle": "If activated, scanning multi page documents is possible. Set this to false if you need to scan single page documents",
73+
74+
"pre_capture_setting_title": "PreCaptureFocus",
75+
"pre_capture_setting_subtitle": "If activated, the camera will run a focus action right before taking the image. This improves the quality of the scanned images, but depending on the device, image capture might take a little bit longer. This applies only to Android",
76+
77+
"default_scan_setting_title": "DefaultScanFilter",
78+
"default_scan_setting_subtitle": "The default scan filter that will be used after scan",
79+
80+
"allow_page_filter_setting_title": "AllowPageFilter",
81+
"allow_page_filter_setting_subtitle": "If deactivated, the bottom toolbar will hide the filter page item",
82+
83+
"allow_page_rotation_setting_title": "AllowPageRotation",
84+
"allow_page_rotation_setting_subtitle": "If deactivated, the bottom toolbar will hide the rotate page item",
85+
86+
"allow_page_arrangement_setting_title": "AllowPageArrangement",
87+
"allow_page_arrangement_setting_subtitle": "If deactivated, the bottom toolbar will hide the arrange page item",
88+
89+
"allow_page_cropping_setting_title": "AllowPageCropping",
90+
"allow_page_cropping_setting_subtitle": "If deactivated, the bottom toolbar will hide the page cropping item",
91+
92+
"page_arrangement_delete_setting_title": "PageArrangementShowDeleteButton",
93+
"page_arrangement_delete_setting_subtitle": "If activated, each item of the page arrangement functionality will show a delete button",
94+
95+
"page_arrangement_number_setting_title": "PageArrangementShowPageNumber",
96+
"page_arrangement_number_setting_subtitle": "If activated, each item of the page arrangement functionality will show its page number",
97+
98+
"color_settings": "Color Settings",
99+
"scan_settings": "Scan Settings",
100+
"edit_settings": "Edit Settings",
101+
"rest_settings": "Reset",
102+
103+
"title_scan_dialog": "Please choose …",
104+
"cancel_scan_dialog": "Cancel",
105+
"auto_option": "Auto",
106+
"gray_option": "Gray",
107+
"black_and_white_option": "Black & White",
108+
"original_option": "Original",
109+
"text_option": "Text",
110+
"auto_2_option": "Auto2",
111+
"illustration_option": "Illustration"
29112
}

0 commit comments

Comments
 (0)