Add in-call info sheet for call links.

This commit is contained in:
Alex Hart
2023-06-08 11:44:33 -03:00
committed by Cody Henthorne
parent 369ca189d3
commit 886c149c3f
20 changed files with 452 additions and 69 deletions

View File

@@ -4,16 +4,9 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.platform.ComposeView
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.ViewCompositionStrategy
@@ -41,29 +34,4 @@ abstract class ComposeBottomSheetDialogFragment : FixedRoundedCornerBottomSheetD
@Composable
abstract fun SheetContent()
/**
* BottomSheet Handle, according to our design specs.
* This can be placed in a column with the other page content like so:
*
* ```
* Column(modifier = Modifier
* .fillMaxWidth()
* .wrapContentSize(Alignment.Center)
* ) {
* Handle()
* Text("Hello!")
* }
* ```
*/
@Composable
protected fun Handle(modifier: Modifier = Modifier) {
Box(
modifier = modifier
.size(width = 48.dp, height = 22.dp)
.padding(vertical = 10.dp)
.clip(RoundedCornerShape(1000.dp))
.background(MaterialTheme.colorScheme.outline)
)
}
}