Skip to content

Commit

Permalink
Apply Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
IanGClifton authored and github-actions[bot] committed Nov 15, 2023
1 parent 5585618 commit 7567f7f
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.example.compose.snippets.adaptivelayouts

import androidx.compose.foundation.background
Expand Down Expand Up @@ -41,7 +42,6 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp


@OptIn(ExperimentalMaterial3AdaptiveApi::class)
@Composable
fun SampleListDetailPaneScaffoldParts() {
Expand Down Expand Up @@ -89,9 +89,8 @@ fun SampleListDetailPaneScaffoldParts() {
scaffoldState = state,
listPane = /* ... */
// [START_EXCLUDE]
{}
{},
// [END_EXCLUDE]
,
detailPane = {
selectedItem?.let { item ->
MyDetails(item)
Expand Down Expand Up @@ -134,7 +133,6 @@ fun SampleListDetailPaneScaffoldFull() {
// [END android_compose_adaptivelayouts_sample_list_detail_pane_scaffold_full]
}


@Composable
fun MyList(
onItemClick: (MyItem) -> Unit,
Expand Down Expand Up @@ -162,13 +160,14 @@ fun MyList(
}

@Composable
fun MyDetails(item: MyItem){
fun MyDetails(item: MyItem) {
val text = shortStrings[item.id]
Card {
Column(
Modifier
.fillMaxSize()
.padding(16.dp)) {
.padding(16.dp)
) {
Text(
text = "Details page for $text",
fontSize = 24.sp,
Expand Down Expand Up @@ -200,4 +199,4 @@ val shortStrings = listOf(
"Nougat",
"Oreo",
"Pie",
)
)

0 comments on commit 7567f7f

Please sign in to comment.