File tree Expand file tree Collapse file tree 1 file changed +36
-1
lines changed
app/src/main/java/com/scouting/app/view/template Expand file tree Collapse file tree 1 file changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,41 @@ fun TemplateListSheet(
226226 modifier = Modifier .padding(horizontal = 30 .dp, vertical = 20 .dp)
227227 )
228228 }
229+
230+ }
231+ BorderedCard (
232+ modifier = Modifier
233+ .padding(bottom = 20 .dp)
234+ .clickable {
235+ viewModel.currentListResource.add(
236+ TemplateItem (
237+ id = UUID
238+ .randomUUID()
239+ .toString(),
240+ text = " " ,
241+ text2 = " " ,
242+ text3 = " " ,
243+ text4 = " " ,
244+ type = TemplateTypes .QUAD_BUTTON , // Updated type
245+ saveKey = " "
246+ )
247+ )
248+ coroutineScope.launch { sheetState.hide() }
249+ }
250+ ) {
251+ val buttonLabel = stringResource(id = R .string.template_editor_quad_button_format_text) // Updated resource
252+ QuadButtonBlock ( // Updated to use QuadButtonBlock
253+ headerText = stringResource(id = R .string.template_editor_quad_button_label), // Updated resource
254+ buttonLabelOne = " $buttonLabel 1" ,
255+ buttonLabelTwo = " $buttonLabel 2" ,
256+ buttonLabelThree = " $buttonLabel 3" ,
257+ buttonLabelFour = " $buttonLabel 4" , // Added fourth button label
258+ onValueChange = {},
259+ enabled = false ,
260+ modifier = Modifier .padding(horizontal = 30 .dp, vertical = 20 .dp)
261+ )
262+ }
263+
229264 BorderedCard (
230265 modifier = Modifier
231266 .padding(bottom = 20 .dp)
@@ -256,4 +291,4 @@ fun TemplateListSheet(
256291 }
257292 }
258293 }
259- }
294+ }
You can’t perform that action at this time.
0 commit comments