On home screen, when a post is clicked, the floating action button moves to the right side of the screen and becomes a message button. How did you achieve that effect on flutter? Is it the hero widget? I have been trying to achieve the same effect on a flutter project without success. I appreciate if you could give me a heads up. Thanks in advance. And great job with lemmur really, I’m following the project closely and have been learning a lot from it.

    • Seferi@lemmy.mlOP
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      4 years ago

      Thanks mate, I’ll try to add the solution here so it might be helpful to the others…

  • shilangyu (lemmur)@lemmy.mlM
    link
    fedilink
    arrow-up
    4
    ·
    3 years ago

    The FAB has a hero widget attached to it automatically thanks to Scaffold, so if both of your pages have a scaffold and use Scaffold.floatingActionButton and Scaffold.floatingActionButtonLocation everything should just magically work

    I’m following the project closely and have been learning a lot from it

    I am happy to hear! I am flattered, but don’t take everything we do as the way it should be done, I mean the state management to be exact. At the beginning we opted to use hooks for everything but now we see that flutter_hooks are not as flexible as react hooks so we are planning to move to some more maintainable state management lib.

    Feel free to ask any other questions :)