FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
127 stars 26 forks source link

Current Release does not allow duplicating pages or components that contain a stack component #3728

Closed greghawk closed 1 month ago

greghawk commented 2 months ago

Can we access your project?

Current Behavior

Upon the most recent release when you attempt to duplicate a page or component containing a stack component no error is shown when trying to duplicate a page and nothing happens. When trying to duplicate components/widgets via copy paste an error is thrown that there is invalid clipboard data.

Expected Behavior

Pages/Widgets/Components can be duplicated without error.

Steps to Reproduce

Take a page with a stack in it try to duplicate page

Take a page with a stack and copy any container containing a stack Try to copy paste into other page

Reproducible from Blank

Bug Report Code (Required)

if (!_model.isFileUploaded) Align( alignment: AlignmentDirectional(0, 0), child: InkWell( splashColor: Colors.transparent, focusColor: Colors.transparent, hoverColor: Colors.transparent, highlightColor: Colors.transparent, onTap: () async { // Get Avatar final selectedMedia = await selectMedia( multiImage: false, ); if (selectedMedia != null && selectedMedia .every((m) => validateFileFormat(m.storagePath, context))) { setState(() => _model.isDataUploading2 = true); var selectedUploadedFiles = []; try { selectedUploadedFiles = selectedMedia .map((m) => FFUploadedFile( name: m.storagePath.split('/').last, bytes: m.bytes, height: m.dimensions?.height, width: m.dimensions?.width, blurHash: m.blurHash, )) .toList(); } finally { _model.isDataUploading2 = false; } if (selectedUploadedFiles.length == selectedMedia.length) { setState(() { _model.uploadedLocalFile2 = selectedUploadedFiles.first; }); } else { setState(() {}); return; } } FFAppState().avatarFile = functions.imageToBase64(_model.uploadedLocalFile2)!; setState(() {}); _model.isFileUploaded = true; _model.avatarUploadFile = _model.uploadedLocalFile2; setState(() {}); }, child: Container( width: 150, height: 150, clipBehavior: Clip.antiAlias, decoration: BoxDecoration( shape: BoxShape.circle, ), child: Image.asset( 'assets/images/uiAvatar@2x.png', fit: BoxFit.cover, ), ), ).animateOnPageLoad(animationsMap['circleImageOnPageLoadAnimation']!), )

Visual documentation

https://github.com/user-attachments/assets/2e50d326-444b-45d8-a3c8-f7eccae5f542

Environment

- FlutterFlow version: 4.1.85
- Platform: Web
- Browser name and version: Chrome Version 128.0.6613.113
- Operating system and version affected: OSX Sonoma

Additional Information

Ignore the copy shown in the video. I got it to duplicate once i removed the stacks. I can't duplicate needed pages.

Alezanello commented 2 months ago

Hello!

I wasn’t able to replicate the issue in a new blank project. I was able to copy and paste everything into new pages or components without any problems, which suggests that this issue might be specific to your project. Since the GitHub Issue Tracker is primarily for bugs that can be replicated in a blank project, if the issue persists, please reach out to support via in-app chat or at support@flutterflow.io. They can take a closer look at your project and help determine the cause.

Thank you!

stackCopy.gif
greghawk commented 2 months ago

I may have isolated it to a specific text field inside the stack. It will not copy. On Sep 2, 2024, at 10:02 AM, Alezanello @.> wrote: Hello! I wasn’t able to replicate the issue in a new blank project. I was able to copy and paste everything into new pages or components without any problems, which suggests that this issue might be specific to your project. Since the GitHub Issue Tracker is primarily for bugs that can be replicated in a blank project, if the issue persists, please reach out to support via in-app chat or at @. They can take a closer look at your project and help determine the cause. Thank you!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

XxWillyxX commented 2 months ago

I have the same issue Even if it's not replicable something must be wrong if many people experience it.

greghawk commented 2 months ago

Alright with further testing it is textInputField inside the stack that stops the duplication from working. So with this setup:

Stack 
    >container
       >textInputField
    >Button
github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

Alezanello commented 1 month ago

Hello,

I apologize for the late response. Does this issue still persist, or was it fixed in the latest FlutterFlow updates?

greghawk commented 1 month ago

I can check. On Sep 18, 2024, at 6:09 PM, Alezanello @.***> wrote: Hello,I apologize for the late response. Does this issue still persist, or was it fixed in the latest FlutterFlow updates?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Alezanello commented 1 month ago

Closing this issue since we haven't heard back from you. If you are still facing the problem please submit a new issue. Have a great day!