Skip to content

Commit 8fc9958

Browse files
committed
feat: Enhance subscreens scaffold
1 parent b37cee3 commit 8fc9958

File tree

9 files changed

+153
-18
lines changed

9 files changed

+153
-18
lines changed

app/src/main/java/to/bitkit/ui/settings/advanced/AddressTypePreferenceScreen.kt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
package to.bitkit.ui.settings.advanced
22

33
import androidx.compose.foundation.layout.Box
4+
import androidx.compose.foundation.layout.Column
45
import androidx.compose.foundation.layout.fillMaxSize
6+
import androidx.compose.foundation.layout.fillMaxWidth
7+
import androidx.compose.foundation.layout.padding
58
import androidx.compose.material3.Text
69
import androidx.compose.runtime.Composable
710
import androidx.compose.ui.Alignment
811
import androidx.compose.ui.Modifier
912
import androidx.compose.ui.res.stringResource
1013
import androidx.compose.ui.tooling.preview.Preview
14+
import androidx.compose.ui.unit.dp
1115
import androidx.navigation.NavController
1216
import to.bitkit.R
1317
import to.bitkit.ui.navigateToHome
@@ -37,8 +41,19 @@ private fun Content(
3741
onBackClick = onBack,
3842
actions = { CloseNavIcon(onClose) },
3943
)
40-
Box(modifier = Modifier.fillMaxSize()) {
41-
Text("TODO: Address Type Preference Screen", modifier = Modifier.align(Alignment.Center))
44+
Column(
45+
modifier = Modifier
46+
.padding(horizontal = 16.dp)
47+
.fillMaxSize()
48+
) {
49+
Box(
50+
contentAlignment = Alignment.Center,
51+
modifier = Modifier
52+
.fillMaxWidth()
53+
.weight(1f)
54+
) {
55+
Text("TODO: Address Type Preference Screen")
56+
}
4257
}
4358
}
4459
}

app/src/main/java/to/bitkit/ui/settings/advanced/AddressViewerScreen.kt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
package to.bitkit.ui.settings.advanced
22

33
import androidx.compose.foundation.layout.Box
4+
import androidx.compose.foundation.layout.Column
45
import androidx.compose.foundation.layout.fillMaxSize
6+
import androidx.compose.foundation.layout.fillMaxWidth
7+
import androidx.compose.foundation.layout.padding
58
import androidx.compose.material3.Text
69
import androidx.compose.runtime.Composable
710
import androidx.compose.ui.Alignment
811
import androidx.compose.ui.Modifier
912
import androidx.compose.ui.res.stringResource
1013
import androidx.compose.ui.tooling.preview.Preview
14+
import androidx.compose.ui.unit.dp
1115
import androidx.navigation.NavController
1216
import to.bitkit.R
1317
import to.bitkit.ui.navigateToHome
@@ -37,8 +41,19 @@ private fun Content(
3741
onBackClick = onBack,
3842
actions = { CloseNavIcon(onClose) },
3943
)
40-
Box(modifier = Modifier.fillMaxSize()) {
41-
Text("TODO: Address Viewer Screen", modifier = Modifier.align(Alignment.Center))
44+
Column(
45+
modifier = Modifier
46+
.padding(horizontal = 16.dp)
47+
.fillMaxSize()
48+
) {
49+
Box(
50+
contentAlignment = Alignment.Center,
51+
modifier = Modifier
52+
.fillMaxWidth()
53+
.weight(1f)
54+
) {
55+
Text("TODO: Address Viewer Screen")
56+
}
4257
}
4358
}
4459
}

app/src/main/java/to/bitkit/ui/settings/advanced/BitcoinNetworkSelectionScreen.kt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
package to.bitkit.ui.settings.advanced
22

33
import androidx.compose.foundation.layout.Box
4+
import androidx.compose.foundation.layout.Column
45
import androidx.compose.foundation.layout.fillMaxSize
6+
import androidx.compose.foundation.layout.fillMaxWidth
7+
import androidx.compose.foundation.layout.padding
58
import androidx.compose.material3.Text
69
import androidx.compose.runtime.Composable
710
import androidx.compose.ui.Alignment
811
import androidx.compose.ui.Modifier
912
import androidx.compose.ui.res.stringResource
1013
import androidx.compose.ui.tooling.preview.Preview
14+
import androidx.compose.ui.unit.dp
1115
import androidx.navigation.NavController
1216
import to.bitkit.R
1317
import to.bitkit.ui.navigateToHome
@@ -37,8 +41,19 @@ private fun Content(
3741
onBackClick = onBack,
3842
actions = { CloseNavIcon(onClose) },
3943
)
40-
Box(modifier = Modifier.fillMaxSize()) {
41-
Text("TODO: Bitcoin Network Selection Screen", modifier = Modifier.align(Alignment.Center))
44+
Column(
45+
modifier = Modifier
46+
.padding(horizontal = 16.dp)
47+
.fillMaxSize()
48+
) {
49+
Box(
50+
contentAlignment = Alignment.Center,
51+
modifier = Modifier
52+
.fillMaxWidth()
53+
.weight(1f)
54+
) {
55+
Text("TODO: Bitcoin Network Selection Screen")
56+
}
4257
}
4358
}
4459
}

app/src/main/java/to/bitkit/ui/settings/advanced/CoinSelectPreferenceScreen.kt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
package to.bitkit.ui.settings.advanced
22

33
import androidx.compose.foundation.layout.Box
4+
import androidx.compose.foundation.layout.Column
45
import androidx.compose.foundation.layout.fillMaxSize
6+
import androidx.compose.foundation.layout.fillMaxWidth
7+
import androidx.compose.foundation.layout.padding
58
import androidx.compose.material3.Text
69
import androidx.compose.runtime.Composable
710
import androidx.compose.ui.Alignment
811
import androidx.compose.ui.Modifier
912
import androidx.compose.ui.res.stringResource
1013
import androidx.compose.ui.tooling.preview.Preview
14+
import androidx.compose.ui.unit.dp
1115
import androidx.navigation.NavController
1216
import to.bitkit.R
1317
import to.bitkit.ui.navigateToHome
@@ -37,8 +41,19 @@ private fun Content(
3741
onBackClick = onBack,
3842
actions = { CloseNavIcon(onClose) },
3943
)
40-
Box(modifier = Modifier.fillMaxSize()) {
41-
Text("TODO: Coin Selection Screen", modifier = Modifier.align(Alignment.Center))
44+
Column(
45+
modifier = Modifier
46+
.padding(horizontal = 16.dp)
47+
.fillMaxSize()
48+
) {
49+
Box(
50+
contentAlignment = Alignment.Center,
51+
modifier = Modifier
52+
.fillMaxWidth()
53+
.weight(1f)
54+
) {
55+
Text("TODO: Coin Selection Screen")
56+
}
4257
}
4358
}
4459
}

app/src/main/java/to/bitkit/ui/settings/advanced/ElectrumConfigScreen.kt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
package to.bitkit.ui.settings.advanced
22

33
import androidx.compose.foundation.layout.Box
4+
import androidx.compose.foundation.layout.Column
45
import androidx.compose.foundation.layout.fillMaxSize
6+
import androidx.compose.foundation.layout.fillMaxWidth
7+
import androidx.compose.foundation.layout.padding
58
import androidx.compose.material3.Text
69
import androidx.compose.runtime.Composable
710
import androidx.compose.ui.Alignment
811
import androidx.compose.ui.Modifier
912
import androidx.compose.ui.res.stringResource
1013
import androidx.compose.ui.tooling.preview.Preview
14+
import androidx.compose.ui.unit.dp
1115
import androidx.navigation.NavController
1216
import to.bitkit.R
1317
import to.bitkit.ui.navigateToHome
@@ -37,8 +41,19 @@ private fun Content(
3741
onBackClick = onBack,
3842
actions = { CloseNavIcon(onClose) },
3943
)
40-
Box(modifier = Modifier.fillMaxSize()) {
41-
Text("TODO: Electrum Server Screen", modifier = Modifier.align(Alignment.Center))
44+
Column(
45+
modifier = Modifier
46+
.padding(horizontal = 16.dp)
47+
.fillMaxSize()
48+
) {
49+
Box(
50+
contentAlignment = Alignment.Center,
51+
modifier = Modifier
52+
.fillMaxWidth()
53+
.weight(1f)
54+
) {
55+
Text("TODO: Electrum Server Screen")
56+
}
4257
}
4358
}
4459
}

app/src/main/java/to/bitkit/ui/settings/advanced/GapLimitScreen.kt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
package to.bitkit.ui.settings.advanced
22

33
import androidx.compose.foundation.layout.Box
4+
import androidx.compose.foundation.layout.Column
45
import androidx.compose.foundation.layout.fillMaxSize
6+
import androidx.compose.foundation.layout.fillMaxWidth
7+
import androidx.compose.foundation.layout.padding
58
import androidx.compose.material3.Text
69
import androidx.compose.runtime.Composable
710
import androidx.compose.ui.Alignment
811
import androidx.compose.ui.Modifier
912
import androidx.compose.ui.res.stringResource
1013
import androidx.compose.ui.tooling.preview.Preview
14+
import androidx.compose.ui.unit.dp
1115
import androidx.navigation.NavController
1216
import to.bitkit.R
1317
import to.bitkit.ui.navigateToHome
@@ -37,8 +41,19 @@ private fun Content(
3741
onBackClick = onBack,
3842
actions = { CloseNavIcon(onClose) },
3943
)
40-
Box(modifier = Modifier.fillMaxSize()) {
41-
Text("TODO: Gap Limit Screen", modifier = Modifier.align(Alignment.Center))
44+
Column(
45+
modifier = Modifier
46+
.padding(horizontal = 16.dp)
47+
.fillMaxSize()
48+
) {
49+
Box(
50+
contentAlignment = Alignment.Center,
51+
modifier = Modifier
52+
.fillMaxWidth()
53+
.weight(1f)
54+
) {
55+
Text("TODO: Gap Limit Screen")
56+
}
4257
}
4358
}
4459
}

app/src/main/java/to/bitkit/ui/settings/advanced/PaymentPreferenceScreen.kt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
package to.bitkit.ui.settings.advanced
22

33
import androidx.compose.foundation.layout.Box
4+
import androidx.compose.foundation.layout.Column
45
import androidx.compose.foundation.layout.fillMaxSize
6+
import androidx.compose.foundation.layout.fillMaxWidth
7+
import androidx.compose.foundation.layout.padding
58
import androidx.compose.material3.Text
69
import androidx.compose.runtime.Composable
710
import androidx.compose.ui.Alignment
811
import androidx.compose.ui.Modifier
912
import androidx.compose.ui.res.stringResource
1013
import androidx.compose.ui.tooling.preview.Preview
14+
import androidx.compose.ui.unit.dp
1115
import androidx.navigation.NavController
1216
import to.bitkit.R
1317
import to.bitkit.ui.navigateToHome
@@ -37,8 +41,19 @@ private fun Content(
3741
onBackClick = onBack,
3842
actions = { CloseNavIcon(onClose) },
3943
)
40-
Box(modifier = Modifier.fillMaxSize()) {
41-
Text("TODO: Payment Preference Screen", modifier = Modifier.align(Alignment.Center))
44+
Column(
45+
modifier = Modifier
46+
.padding(horizontal = 16.dp)
47+
.fillMaxSize()
48+
) {
49+
Box(
50+
contentAlignment = Alignment.Center,
51+
modifier = Modifier
52+
.fillMaxWidth()
53+
.weight(1f)
54+
) {
55+
Text("TODO: Payment Preference Screen")
56+
}
4257
}
4358
}
4459
}

app/src/main/java/to/bitkit/ui/settings/advanced/RgsServerScreen.kt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
package to.bitkit.ui.settings.advanced
22

33
import androidx.compose.foundation.layout.Box
4+
import androidx.compose.foundation.layout.Column
45
import androidx.compose.foundation.layout.fillMaxSize
6+
import androidx.compose.foundation.layout.fillMaxWidth
7+
import androidx.compose.foundation.layout.padding
58
import androidx.compose.material3.Text
69
import androidx.compose.runtime.Composable
710
import androidx.compose.ui.Alignment
811
import androidx.compose.ui.Modifier
912
import androidx.compose.ui.res.stringResource
1013
import androidx.compose.ui.tooling.preview.Preview
14+
import androidx.compose.ui.unit.dp
1115
import androidx.navigation.NavController
1216
import to.bitkit.R
1317
import to.bitkit.ui.navigateToHome
@@ -37,8 +41,19 @@ private fun Content(
3741
onBackClick = onBack,
3842
actions = { CloseNavIcon(onClose) },
3943
)
40-
Box(modifier = Modifier.fillMaxSize()) {
41-
Text("TODO: RGS Server Screen", modifier = Modifier.align(Alignment.Center))
44+
Column(
45+
modifier = Modifier
46+
.padding(horizontal = 16.dp)
47+
.fillMaxSize()
48+
) {
49+
Box(
50+
contentAlignment = Alignment.Center,
51+
modifier = Modifier
52+
.fillMaxWidth()
53+
.weight(1f)
54+
) {
55+
Text("TODO: RGS Server Screen")
56+
}
4257
}
4358
}
4459
}

app/src/main/java/to/bitkit/ui/settings/advanced/WebRelayScreen.kt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
package to.bitkit.ui.settings.advanced
22

33
import androidx.compose.foundation.layout.Box
4+
import androidx.compose.foundation.layout.Column
45
import androidx.compose.foundation.layout.fillMaxSize
6+
import androidx.compose.foundation.layout.fillMaxWidth
7+
import androidx.compose.foundation.layout.padding
58
import androidx.compose.material3.Text
69
import androidx.compose.runtime.Composable
710
import androidx.compose.ui.Alignment
811
import androidx.compose.ui.Modifier
912
import androidx.compose.ui.res.stringResource
1013
import androidx.compose.ui.tooling.preview.Preview
14+
import androidx.compose.ui.unit.dp
1115
import androidx.navigation.NavController
1216
import to.bitkit.R
1317
import to.bitkit.ui.navigateToHome
@@ -37,8 +41,19 @@ private fun Content(
3741
onBackClick = onBack,
3842
actions = { CloseNavIcon(onClose) },
3943
)
40-
Box(modifier = Modifier.fillMaxSize()) {
41-
Text("TODO: Web Relay Screen", modifier = Modifier.align(Alignment.Center))
44+
Column(
45+
modifier = Modifier
46+
.padding(horizontal = 16.dp)
47+
.fillMaxSize()
48+
) {
49+
Box(
50+
contentAlignment = Alignment.Center,
51+
modifier = Modifier
52+
.fillMaxWidth()
53+
.weight(1f)
54+
) {
55+
Text("TODO: Web Relay Screen")
56+
}
4257
}
4358
}
4459
}

0 commit comments

Comments
 (0)