File tree Expand file tree Collapse file tree
core/ui/src/main/kotlin/com/xayah/core/ui/component
feature/main/dashboard/src/main/kotlin/com/xayah/feature/main/dashboard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.size
1010import androidx.compose.material3.Badge
1111import androidx.compose.material3.BadgedBox
1212import androidx.compose.material3.ExperimentalMaterial3Api
13+ import androidx.compose.material3.FabPosition // <-- 新增
1314import androidx.compose.material3.Scaffold
1415import androidx.compose.material3.Text
1516import androidx.compose.material3.TopAppBar
@@ -42,6 +43,7 @@ fun MainIndexSubScaffold(
4243 updateAvailable : Boolean ,
4344 onVersionChipClick : (() -> Unit )? = null,
4445 actions : @Composable RowScope .() -> Unit = {},
46+ floatingActionButton : @Composable () -> Unit = {}, // <-- 新增
4547 content : @Composable (BoxScope .() -> Unit )
4648) {
4749 val context = LocalContext .current
@@ -96,6 +98,8 @@ fun MainIndexSubScaffold(
9698 )
9799 }
98100 },
101+ floatingActionButton = floatingActionButton, // <-- 新增
102+ floatingActionButtonPosition = FabPosition .Center , // <-- 新增
99103 ) { innerPadding ->
100104 Column {
101105 InnerTopSpacer (innerPadding = innerPadding)
You can’t perform that action at this time.
0 commit comments