Skip to content

Editor Custom Functions apaga Todo o código #7115

@CleitonCardosoDev

Description

@CleitonCardosoDev

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

o editor de funções customizadas fica apagando todo meu código ao interagir com qualquer opção fora do editor, como nas configurações da função do lado direito do editor, o compilador das funções não compila quase nenhum de meus códigos que funcionam perfeitamente em outros editores.

Expected Behavior

Apenas escrever códigos sem que ficassem sumindo, e que melhorem o compilador

Steps to Reproduce

escrever qualquer código no custom functions e clicar em qualquer opção fora do editor, faz com que ao voltar para tela do editor, suma todo o código

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

FFButtonWidget( onPressed: () async { _model.updatedCartList = await actions.verificaItemExist( FFAppState().cartItemsGPT.toList(), DTproductsStruct( id: stackProductsRow?.id, name: stackProductsRow?.name, type: stackProductsRow?.type, quantity: _model.countControllerValue, basePrice: stackProductsRow?.basePrice, finalPrice: stackProductsRow!.basePrice * (_model.countControllerValue!), imageUrl: stackProductsRow?.imageUrl, ), ); FFAppState().cartItemsGPT = _model.updatedCartList!.toList().cast(); FFAppState().ValorTotal = FFAppState().ValorTotal + _model.updatedCartList!.firstOrNull!.finalPrice; FFAppState().qtdItemsCart = (_model.countControllerValue!) + FFAppState().qtdItemsCart; safeSetState(() {}); safeSetState(() {}); }, text: 'Adicionar a Sacola', icon: Icon( Icons.shopping_basket_outlined, size: 20.0, ), options: FFButtonOptions( width: 200.0, height: 40.0, padding: EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 16.0, 0.0), iconAlignment: IconAlignment.end, iconPadding: EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0), color: FlutterFlowTheme.of(context).secondaryBackground, textStyle: FlutterFlowTheme.of(context).titleSmall.override( font: GoogleFonts.readexPro( fontWeight: FlutterFlowTheme.of(context).titleSmall.fontWeight, fontStyle: FlutterFlowTheme.of(context).titleSmall.fontStyle, ), color: FlutterFlowTheme.of(context).primaryText, letterSpacing: 0.0, fontWeight: FlutterFlowTheme.of(context).titleSmall.fontWeight, fontStyle: FlutterFlowTheme.of(context).titleSmall.fontStyle, ), elevation: 0.0, borderSide: BorderSide( color: FlutterFlowTheme.of(context).primary, width: 2.0, ), borderRadius: BorderRadius.circular(18.0), ), )

Visual documentation

Environment

- FlutterFlow version: v6.6.93+ released May9,2026
- Platform: Desktop
- Browser name and version:Chrome 148.0.7778.97
- Operating system and version affected: Windows 11 Home Single Language

Additional Information

Não posso continuar meu projeto sem conseguir criar Funções Customizados, se o problema não for resolvido terei de migrar para outra plataforma!

Metadata

Metadata

Assignees

Labels

status: can't reproduceFollowing the reported steps did not reproduce the bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions