Flutter Navigation | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/978120-flutter-navigation

You don’t need to pass Member object to MemberState through constructor. You can directly access the object in MemberState using widget.member.

@macsimus Can you please help with this when you get a chance? Thank you - much appreciated! :]

Thanks for the tip, @sagarsuri! In looking at this, it’s also true that MemberWidget could be a stateless widget, since member is not mutable. Just need to change the base type and move the build() and other methods into MemberWidget. Those changes can be seen here:

1 Like