Skip to content

Commit

Permalink
Refactor: Remove ExperimentalMaterial3Api opt-ins that are no longer …
Browse files Browse the repository at this point in the history
…necessary
  • Loading branch information
zhanghai committed Sep 10, 2024
1 parent 9b7de36 commit d7a610a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyListScope
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Info
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.IconButtonDefaults
Expand Down Expand Up @@ -59,7 +58,6 @@ fun LazyListScope.twoTargetIconButtonPreference(
}

@Composable
@OptIn(ExperimentalMaterial3Api::class)
fun TwoTargetIconButtonPreference(
title: @Composable () -> Unit,
iconButtonIcon: @Composable () -> Unit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyListScope
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Info
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.Switch
import androidx.compose.material3.Text
Expand Down Expand Up @@ -91,7 +90,6 @@ fun TwoTargetSwitchPreference(
}

@Composable
@OptIn(ExperimentalMaterial3Api::class)
fun TwoTargetSwitchPreference(
value: Boolean,
onValueChange: (Boolean) -> Unit,
Expand Down

0 comments on commit d7a610a

Please sign in to comment.