8.6: AppLink class vs FooderlichPages class

In Section 8.6, we’ve added the AppLink class. It looks like this will eventually make the FooderlichPages class obsolete. Am I correct or do we need to keep both forever?

1 Like

@jefff9511

Yes you are right in theory I could use the constants in AppLink instead of having another list of keys.

The main reason for FooderlichPages constants is to provide Key value for each Material Page generated.

The keys in AppLink are mainly url path names.

Please do take chapter 7-8 with a grain of salt as Navigator 2.0 is a really new library. People in the Flutter community are trying to build libraries to make it easier to use. E.g. you should also check out go_router | Flutter Package

After you are done with the chapters!

2 Likes