Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import androidx.navigation.compose.rememberNavController
import androidx.navigation.navArgument
import io.scanbot.demo.composeui.ui.theme.ScanbotSdkAndroidTheme
import io.scanbot.demo.composeui.ui.theme.sbBrandColor
import io.scanbot.example.compose.barcode.BarcodeDetailScreen
import io.scanbot.sdk.ScanbotSDK
import io.scanbot.sdk.licensing.LicenseStatus
import java.net.URLDecoder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ package io.scanbot.example.compose
import android.util.Log
import androidx.annotation.OptIn
import androidx.camera.camera2.interop.ExperimentalCamera2Interop
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.gestures.rememberScrollableState
import androidx.compose.foundation.gestures.scrollable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.systemBarsPadding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.BasicAlertDialog
import androidx.compose.material3.Button
import androidx.compose.material3.ExperimentalMaterial3Api
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.scanbot.example.compose
package io.scanbot.example.compose.barcode

import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package io.scanbot.example.compose
package io.scanbot.example.compose.barcode

import android.util.Log
import androidx.annotation.OptIn
import androidx.camera.camera2.interop.ExperimentalCamera2Interop
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
Expand All @@ -16,7 +13,6 @@ import androidx.compose.material.Icon
import androidx.compose.material.TopAppBar
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material3.Button
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold
Expand All @@ -25,26 +21,16 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableFloatStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.geometry.Rect
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.layout.layout
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.navigation.NavHostController
import androidx.navigation.NavOptions
import io.scanbot.common.*
import io.scanbot.demo.composeui.ui.theme.sbBrandColor
import io.scanbot.example.compose.components.*
import io.scanbot.sdk.barcode.textWithExtension
import io.scanbot.sdk.geometry.*
import io.scanbot.sdk.ui_v2.barcode.*
import io.scanbot.sdk.ui_v2.barcode.components.ar_tracking.ScanbotBarcodesArOverlay
import io.scanbot.sdk.ui_v2.common.*
import io.scanbot.sdk.ui_v2.common.components.*
import kotlin.random.*

@OptIn(ExperimentalCamera2Interop::class)
@Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.scanbot.example.compose
package io.scanbot.example.compose.barcode

import android.util.Log
import androidx.annotation.OptIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.scanbot.example.compose
package io.scanbot.example.compose.barcode

import android.util.Log
import androidx.annotation.OptIn
Expand Down Expand Up @@ -33,10 +33,10 @@ import androidx.navigation.NavHostController
import androidx.navigation.NavOptions
import io.scanbot.common.*
import io.scanbot.demo.composeui.ui.theme.sbBrandColor
import io.scanbot.example.compose.Screen
import io.scanbot.example.compose.components.*
import io.scanbot.sdk.geometry.*
import io.scanbot.sdk.ui_v2.barcode.*
import io.scanbot.sdk.ui_v2.common.*
import io.scanbot.sdk.ui_v2.common.components.*
import kotlin.random.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.scanbot.example.compose
package io.scanbot.example.compose.barcode

import android.util.Log
import androidx.annotation.OptIn
Expand Down Expand Up @@ -33,10 +33,10 @@ import androidx.navigation.NavHostController
import androidx.navigation.NavOptions
import io.scanbot.common.*
import io.scanbot.demo.composeui.ui.theme.sbBrandColor
import io.scanbot.example.compose.Screen
import io.scanbot.example.compose.components.*
import io.scanbot.sdk.geometry.*
import io.scanbot.sdk.ui_v2.barcode.*
import io.scanbot.sdk.ui_v2.common.*
import io.scanbot.sdk.ui_v2.common.components.*
import kotlin.random.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.scanbot.example.compose
package io.scanbot.example.compose.barcode

import android.util.Log
import androidx.annotation.OptIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.scanbot.example.compose
package io.scanbot.example.compose.barcode

import android.util.Log
import androidx.annotation.OptIn
Expand Down Expand Up @@ -33,10 +33,10 @@ import androidx.navigation.NavHostController
import androidx.navigation.NavOptions
import io.scanbot.common.*
import io.scanbot.demo.composeui.ui.theme.sbBrandColor
import io.scanbot.example.compose.Screen
import io.scanbot.example.compose.components.*
import io.scanbot.sdk.geometry.*
import io.scanbot.sdk.ui_v2.barcode.*
import io.scanbot.sdk.ui_v2.common.*
import io.scanbot.sdk.ui_v2.common.components.*
import kotlin.random.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.scanbot.example.compose
package io.scanbot.example.compose.barcode

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
Expand All @@ -11,7 +11,6 @@ import androidx.compose.ui.geometry.Rect
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.layout.layout
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.dp
import io.scanbot.sdk.barcode.BarcodeItem
import io.scanbot.sdk.barcode.BarcodeScannerResult
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import io.scanbot.common.*
import io.scanbot.example.compose.CustomBarcodesArView
import io.scanbot.example.compose.barcode.CustomBarcodesArView
import io.scanbot.sdk.barcode.textWithExtension
import io.scanbot.sdk.geometry.AspectRatio
import io.scanbot.sdk.ui_v2.barcode.BarcodeScannerCustomUI
Expand Down