Skip to content

Commit 31b9ab1

Browse files
committed
separated functions to files
1 parent 7b15cca commit 31b9ab1

File tree

5 files changed

+438
-358
lines changed

5 files changed

+438
-358
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package ru.tech.cookhelper.presentation.app.components
2+
3+
import androidx.compose.foundation.layout.*
4+
import androidx.compose.runtime.Composable
5+
import androidx.compose.ui.Modifier
6+
7+
@Composable
8+
fun NavigationBarsSpacer() {
9+
Spacer(Modifier.padding(WindowInsets.navigationBars.asPaddingValues()))
10+
}
11+
12+
@Composable
13+
fun StatusBarsSpacer() {
14+
Spacer(Modifier.padding(WindowInsets.statusBars.asPaddingValues()))
15+
}
16+
17+
@Composable
18+
fun SystemBarsSpacer() {
19+
Spacer(Modifier.padding(WindowInsets.systemBars.asPaddingValues()))
20+
}
21+

0 commit comments

Comments
 (0)