Flutter - Using Two Containers

I’m using 2 containers in the same App for web no problem but now with Flutter how to handle the situation?

Screen Shot 2022-06-24 at 13.08.21

Container: contable
and Container: default

Screen Shot 2022-06-24 at 13.11.24

Booth are talking and share data, using this method check the url no know the test or release and then Open Web Page at the same window.

If it’s not possible maybe from the server side we can move all to the same Container?

Thanks, Mario

Hello, @Mario_Ghersi.

Sorry for long delay.
2 containers will not work in flutter (each container is a separate application). You need to re-architecture the application so that everything is used in one container, then the problem will be solved.

Best Regards, Nikita.

OK, thanks.

I would like to know if I can move pages from containers just to put all together, the Flutter approach change my architecture.

Thanks, Mario

Hi @Mario_Ghersi ,

There is a way in which you can merge containers together.
Before doing next action you should create a backup for ui-builder folder.
After backup copy content of one container folder
/ui-builder/containers/{sourceContainer}/{subFolder}/...
to another
/ui-builder/containers/{targetContainer}/{subFolder}/...

Could you please try it and write back about results?

Regards, Andriy

Thanks Andriy

My situation is 2 Containers same App, I would like to have 1 container (default).

  1. I check no name equals in pages just in case and for my easy searching.
  2. Inside Ui-builder 3 folders (contable / default / system)
  3. Inside contable this folders:

  1. Inside default folder:

  1. These are the pages in container “contable” to go to default (all finish with Con):

How to continue because I need a merge not replace of my actual default container.

I’d merge pages and give me an error but looks like are there at deafult

Then functions:

I found these at app.son and copy one by one and solved!
Now I will check one by one.

styles looks the same.

app.json must be edited to add functions?

Also I found problems with my older Home Page but I cleared and build again.

Now the big problem is I can’t Publish.

I’m previewing the app to check all the links.

Thanks, Mario

Hello @Mario_Ghersi,

  1. Did you merge all folders?
  2. The app.json file shouldn’t be edited.

Regards,
Olha

  1. Components is empty. Functions looks similar not copy. Pages copy all except 404. styles not copy.
  2. app.json edited and repaired the 3 affected functions.

But still some problems at pages code and buttons. “Server Error”

Not possible to PUBLISH.

Thanks, Mario

I assume the Error in a button topic is related. Please try to copy files again.

Yes, checking 1 by 1 I found missing files inside the components folder.

But if I like to publish same error:

Screen Shot 2022-07-04 at 16.36.11

Thanks, Mario

@Mario_Ghersi I replied you in this topic

Regards,
Marina

Ready replaced and still not PUBLISH. Could be another of the imported pages?

How to know the next one with problems?

Thanks, Mario

Could we move the conversation here?

OK, yes because I start looking to merge 2 containers and then I found the PUBLISH error.

Thanks, Mario

I delete one of the pages with links problem and now I’m with all in the same container and with PUBLISH working again.

Thanks, Mario