TextField does not unfocus when keyboard is hidden – Material 3 Jetpack Compose

I’m facing a problem and I’m not sure if I’m doing something wrong. When I implement a Material3 TextField when you hide the keyboard manually the Textfield is not loosing the focus and you can’t open the keyboard again. Is someone facing the same issue? I am not inserting code snippet because is the simple… Read More TextField does not unfocus when keyboard is hidden – Material 3 Jetpack Compose

Material 3 MaterialSwitch size is too large by default? How to make it smaller?

I’m using the code below to create a material 3 switch in Android using XML, and it’s much larger than a normal switch. Is there any way to make it smaller? <com.google.android.material.materialswitch.MaterialSwitch android:id="@+id/biometrics_switch" style="@style/Widget.Material3.CompoundButton.MaterialSwitch" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" app:switchPadding="@dimen/_10sdp" android:minHeight="@dimen/_10sdp" app:thumbTint="@color/white" app:trackTint="@color/neutral_800" /> >Solution : In Material Switch width and height affect on clickable area… Read More Material 3 MaterialSwitch size is too large by default? How to make it smaller?

Jetpack Compose: changing startIndent in Material3 Divider

In androidx.compose.material the Divider component is defined as: @Composable fun Divider( modifier: Modifier = Modifier, color: Color = MaterialTheme.colors.onSurface.copy(alpha = DividerAlpha), thickness: Dp = 1.dp, startIndent: Dp = 0.dp ): Unit In androidx.compose.material3 the Divider component is defined as: @Composable fun Divider( modifier: Modifier = Modifier, thickness: Dp = DividerDefaults.Thickness, color: Color = DividerDefaults.color ):… Read More Jetpack Compose: changing startIndent in Material3 Divider

How to use a FilledButton in flutter (Material 3)

link1 (Screenshot) : https://flutter.github.io/samples/web/material_3_demo/#/ link2 (Document) : https://api.flutter.dev/flutter/material/FilledButton-class.html#material.FilledButton.1 flutter doctor [✓] Flutter (Channel stable, 3.3.10, on macOS 12.5.1 21G83 darwin-arm, locale ko-KR) • Flutter version 3.3.10 on channel stable at /Users/username/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 135454af32 (8 days ago), 2022-12-15 07:36:55 -0800 • Engine revision 3316dd8728 • Dart version 2.18.6 • DevTools… Read More How to use a FilledButton in flutter (Material 3)

I cannot use TextField() in jetpack Compose(Material 3)

@Composable fun EditNumberField() { TextField(value = "", onValueChange = {}){ } } It says Unresolved reference: TextField. I want a TextField so that the user can enter a value but it is showing an error. >Solution : Check your dependencies in the build.gradle file. You have to add the library: implementation "androidx.compose.material3:material3:$material3_version" Also check your… Read More I cannot use TextField() in jetpack Compose(Material 3)