소스 검색

Worked on items form, and added imepadding on these for content not hide when textfield opened and also it can scroll

Khubaib 4 달 전
부모
커밋
97cd5917eb

+ 11 - 0
.idea/other.xml

@@ -15,6 +15,17 @@
           <option name="screenY" value="1280" />
         </PersistentDeviceSelectionData>
         <PersistentDeviceSelectionData>
+          <option name="api" value="34" />
+          <option name="brand" value="OPPO" />
+          <option name="codename" value="OP573DL1" />
+          <option name="id" value="OP573DL1" />
+          <option name="manufacturer" value="OPPO" />
+          <option name="name" value="CPH2557" />
+          <option name="screenDensity" value="480" />
+          <option name="screenX" value="1080" />
+          <option name="screenY" value="2400" />
+        </PersistentDeviceSelectionData>
+        <PersistentDeviceSelectionData>
           <option name="api" value="28" />
           <option name="brand" value="DOCOMO" />
           <option name="codename" value="SH-01L" />

+ 2 - 0
app/src/main/java/com/fastest/pass/home/presentation/ui/components/AddBankAccountFormScreen.kt

@@ -12,6 +12,7 @@ import androidx.compose.foundation.layout.defaultMinSize
 import androidx.compose.foundation.layout.fillMaxSize
 import androidx.compose.foundation.layout.fillMaxWidth
 import androidx.compose.foundation.layout.height
+import androidx.compose.foundation.layout.imePadding
 import androidx.compose.foundation.layout.padding
 import androidx.compose.foundation.layout.wrapContentHeight
 import androidx.compose.foundation.rememberScrollState
@@ -57,6 +58,7 @@ fun AddBankAccountFormScreen() {
             .padding(horizontal = 30.dp)
             .padding(bottom = 20.dp)
             .background(Color.Transparent)
+            .imePadding()
     ) {
         SaveButtonABAFS(buttonText = R.string.save)
 

+ 3 - 1
app/src/main/java/com/fastest/pass/home/presentation/ui/components/AddContactInfoScreen.kt

@@ -18,6 +18,7 @@ import androidx.compose.foundation.layout.defaultMinSize
 import androidx.compose.foundation.layout.fillMaxSize
 import androidx.compose.foundation.layout.fillMaxWidth
 import androidx.compose.foundation.layout.height
+import androidx.compose.foundation.layout.imePadding
 import androidx.compose.foundation.layout.padding
 import androidx.compose.foundation.layout.size
 import androidx.compose.foundation.layout.width
@@ -106,7 +107,8 @@ fun AddContactInfoScreen() {
             .fillMaxSize()
             .padding(horizontal = 30.dp)
             .padding(bottom = 20.dp)
-            .background(Color.Transparent),
+            .background(Color.Transparent)
+            .imePadding(),
     ) {
         SaveButtonACIFS(buttonText = R.string.save)
 

+ 2 - 0
app/src/main/java/com/fastest/pass/home/presentation/ui/components/AddDriverLicenseFormScreen.kt

@@ -12,6 +12,7 @@ import androidx.compose.foundation.layout.defaultMinSize
 import androidx.compose.foundation.layout.fillMaxSize
 import androidx.compose.foundation.layout.fillMaxWidth
 import androidx.compose.foundation.layout.height
+import androidx.compose.foundation.layout.imePadding
 import androidx.compose.foundation.layout.padding
 import androidx.compose.foundation.layout.wrapContentHeight
 import androidx.compose.foundation.rememberScrollState
@@ -70,6 +71,7 @@ fun AddDriverLicenseFormScreen() {
             .padding(horizontal = 30.dp)
             .padding(bottom = 20.dp)
             .background(Color.Transparent)
+            .imePadding()
     ) {
         SaveButtonADLFS(buttonText = R.string.save)
 

+ 2 - 0
app/src/main/java/com/fastest/pass/home/presentation/ui/components/AddPassportFormScreen.kt

@@ -12,6 +12,7 @@ import androidx.compose.foundation.layout.defaultMinSize
 import androidx.compose.foundation.layout.fillMaxSize
 import androidx.compose.foundation.layout.fillMaxWidth
 import androidx.compose.foundation.layout.height
+import androidx.compose.foundation.layout.imePadding
 import androidx.compose.foundation.layout.padding
 import androidx.compose.foundation.layout.wrapContentHeight
 import androidx.compose.foundation.rememberScrollState
@@ -70,6 +71,7 @@ fun AddPassportFormScreen() {
             .padding(horizontal = 30.dp)
             .padding(bottom = 20.dp)
             .background(Color.Transparent)
+            .imePadding()
     ) {
         SaveButtonAPFS(buttonText = R.string.save)
 

+ 4 - 0
app/src/main/java/com/fastest/pass/home/presentation/ui/components/AddPasswordFormScreen.kt

@@ -9,12 +9,15 @@ import androidx.compose.foundation.layout.Box
 import androidx.compose.foundation.layout.BoxScope
 import androidx.compose.foundation.layout.Column
 import androidx.compose.foundation.layout.ColumnScope
+import androidx.compose.foundation.layout.ExperimentalLayoutApi
 import androidx.compose.foundation.layout.Row
 import androidx.compose.foundation.layout.Spacer
 import androidx.compose.foundation.layout.defaultMinSize
 import androidx.compose.foundation.layout.fillMaxSize
 import androidx.compose.foundation.layout.fillMaxWidth
 import androidx.compose.foundation.layout.height
+import androidx.compose.foundation.layout.imeNestedScroll
+import androidx.compose.foundation.layout.imePadding
 import androidx.compose.foundation.layout.padding
 import androidx.compose.foundation.layout.size
 import androidx.compose.foundation.layout.wrapContentHeight
@@ -70,6 +73,7 @@ fun AddPasswordFormScreen() {
             .padding(horizontal = 30.dp)
             .padding(bottom = 20.dp)
             .background(Color.Transparent)
+            .imePadding()
     ) {
         SaveButtonAPWFS(buttonText = R.string.save)
 

+ 3 - 1
app/src/main/java/com/fastest/pass/home/presentation/ui/components/AddPaymentCardFormScreen.kt

@@ -12,6 +12,7 @@ import androidx.compose.foundation.layout.defaultMinSize
 import androidx.compose.foundation.layout.fillMaxSize
 import androidx.compose.foundation.layout.fillMaxWidth
 import androidx.compose.foundation.layout.height
+import androidx.compose.foundation.layout.imePadding
 import androidx.compose.foundation.layout.padding
 import androidx.compose.foundation.layout.wrapContentHeight
 import androidx.compose.foundation.rememberScrollState
@@ -56,7 +57,8 @@ fun AddPaymentCardFormScreen() {
             .fillMaxSize()
             .padding(horizontal = 30.dp)
             .padding(bottom = 20.dp)
-            .background(Color.Transparent),
+            .background(Color.Transparent)
+            .imePadding(),
     ) {
         SaveButtonAPCFS(buttonText = R.string.save)
 

+ 2 - 0
app/src/main/java/com/fastest/pass/home/presentation/ui/components/AddSecureNoteFormScreen.kt

@@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.defaultMinSize
 import androidx.compose.foundation.layout.fillMaxSize
 import androidx.compose.foundation.layout.fillMaxWidth
 import androidx.compose.foundation.layout.height
+import androidx.compose.foundation.layout.imePadding
 import androidx.compose.foundation.layout.padding
 import androidx.compose.foundation.layout.wrapContentHeight
 import androidx.compose.foundation.rememberScrollState
@@ -56,6 +57,7 @@ fun AddSecureNoteFormScreen() {
             .padding(bottom = 15.dp)
             .background(Color.Transparent)
             .verticalScroll(rememberScrollState())
+            .imePadding()
     ) {
         Spacer(modifier = Modifier.height(20.dp))
         TitleTextFieldASNFS(keyboardController = keyboardController, focusManager = focusManager)

+ 2 - 0
app/src/main/java/com/fastest/pass/home/presentation/ui/components/AddWifiPasswordFormScreen.kt

@@ -12,6 +12,7 @@ import androidx.compose.foundation.layout.defaultMinSize
 import androidx.compose.foundation.layout.fillMaxSize
 import androidx.compose.foundation.layout.fillMaxWidth
 import androidx.compose.foundation.layout.height
+import androidx.compose.foundation.layout.imePadding
 import androidx.compose.foundation.layout.padding
 import androidx.compose.foundation.layout.wrapContentHeight
 import androidx.compose.foundation.rememberScrollState
@@ -57,6 +58,7 @@ fun AddWifiPasswordFormScreen() {
             .padding(horizontal = 30.dp)
             .padding(bottom = 20.dp)
             .background(Color.Transparent)
+            .imePadding()
     ) {
         SaveButtonAWPFS(buttonText = R.string.save)