I am trying to achieve a behaviour similar with the photo. A library that can do the same thing will be useful as well. I already tried https://github.com/dokar3/ChipTextField but run into some issues
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/ui/platform/LocalSoftwareKeyboardController;
You can implement it using
FlowRow
,Chip
andBasicTextField
.1- Create a data class that hold Uri and String
2- Create custom chip that displays image, string. I used
Coil
library for painter to getPainter
fromUri
.3- Use
FlowRow
to align chips and put a BasicTextField to last item.Also i used rememberLauncherForActivityResult for selecting image that you can add to gradle with
You can use another or default image picker with SAF if you want to
Usage