Ask Your Question
3

What are the routes in Flutter docs that are not recommended for general applicability?

asked 2023-05-04 09:26:06 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-04 09:56:02 +0000

ladyg gravatar image

The Flutter docs mention the following routes as not recommended for general applicability:

  1. PageRouteBuilder with opaque: false - This is because it can lead to inefficiencies in the rendering of the app.

  2. CupertinoPageRoute with fullscreenDialog: true - This is because it is designed to be used specifically with iOS-style full-screen dialogs and may not behave as expected in other situations.

  3. MaterialPageRoute with builder and settings- This is because it does not allow for customization of the transition animation.

  4. Navigator.popAndPushNamed - This is because it can create unnecessary complexity in the navigation stack.

  5. MaterialPageRoute with maintainState: false - This is because it can lead to unexpected behavior if the user navigates back to the screen.

It is important to note that these routes may still be appropriate for specific use cases, but they are not recommended for general applicability.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-04 09:26:06 +0000

Seen: 11 times

Last updated: May 04 '23