for an application that will have multi pages (looks like the image added), is it better to use StackView or Loader. Please note that, pages should not be closed and when they are opened again, they need to continue from the state they were closed. As far as I've searched, both of them have their disadvantage: Loader: 1 loader will not be enough for multi page. For every other page there must be a loader. That looks unnecessary. Also, for each time loader will destroy and open a new page. That makes it harder to open page as it was closed.
StackView: Stackview looks like useful for nested situations. But in the app, there will also be branches. In that case, people say it might cause memory leak etc.
StackView
is definitely preferable since it's designed exactly for such purposes. - folibisinitialItem
, I don't think that would cause a problem... one thing to note btw, is that the state of page1, page2 and page3 might have been lost in that case (the garbage collector clears out the unused pages from StackView every now and then) - Amfasis