Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Harsh Bhikadia
    @daadu_gitlab
    @avj-jpg
    avj-jpg
    @avj-jpg
    Hey, thanks @daadu_gitlab. I also have this additional problem. Basically, i have a scrollview on the front layer. Some text on the back layer. If I press the button that reveals the back layer, everything freezes on the front layer. Any subsequent touches on the frontlayer keep revealing the back layer. The freeze goes away only when you restart. Do you know what could be going on? Sorry can't provide any code.
    WieFel
    @WieFel
    This sounds like there could be an error within your code at the moment of concealing the front layer. Have you checked if there is any error thrown on the console?
    If you can't provide any code I am not able to help you any more than that... ;)
    WieFel
    @WieFel
    @daadu_gitlab unfortunately I won't make it till today with the demo app. But I will try to finish it asap so that we can release v1.0!
    Harsh Bhikadia
    @daadu_gitlab
    No problem brother
    !
    WieFel
    @WieFel
    Hi @daadu_gitlab , any news on the demo app pull request? ;) (no stress)
    Harsh Bhikadia
    @daadu_gitlab
    I am busy with my work this days
    will look into it this weekend
    WieFel
    @WieFel
    ok, no problem ;)
    only thought you would have forgotten it...
    WieFel
    @WieFel
    @daadu_gitlab nice, thanks for merging everything! ;)
    Harsh Bhikadia
    @daadu_gitlab
    (y)
    WieFel
    @WieFel
    what do we do about hosting the demo app as github pages?
    Harsh Bhikadia
    @daadu_gitlab
    gh-pages branch is setup to be hosted as github pages
    i have requested for github pages settings fluttercommunity/community#55
    once done, need to write a small github action that updated gh-pages branch when anything is pushed to master
    updates*
    you can check it in my fork version right now, https://daadu.github.io/backdrop/
    k3ntar0
    @k3ntar0
    Hi there,
    I couldn’t find pop or push navigator functions.
    Doesn’t it still exist?
    And how should I do?
    WieFel
    @WieFel
    @k3ntar0 I suppose you refer to "opening/closing" the backdrop?
    this can be done with by calling revealBackLayer() or concealBackLayer(). Hope this helps
    Or are you talking about pushing a new route?
    Guilherme Santos
    @gjstos
    I think he's talking about pushing a new route. Since using a dynamic frontLayer from the backLayer will only change the "body" and not the "appBar", as a default push would do.
    Harsh Bhikadia
    @daadu_gitlab

    @k3ntar0 we do not support Navigator functions, to push to FrontLayer.

    But I think it is a good idea to implment nested Navigator, and exposing it with Backdrop.of(context).navigator

    @WieFel what do you think

    ?
    I guess Navigator.of will also work, if called with BuildContext of a widget that is below the frontLayer widget
    since widget.frontLayer will be wrapped with Navigator
    WieFel
    @WieFel
    @daadu_gitlab I'm not so experienced with Navigator etc.
    What would be the advantages of implementing this?
    Harsh Bhikadia
    @daadu_gitlab
    user can push widget to frontLayer
    @k3ntar0 Can you explain what is the exact use case?
    Harsh Bhikadia
    @daadu_gitlab
    but I guess user can implment him self nested navigator if he wants, with frontLayer
    Yaroslav Pronin
    @proninyaroslav
    Hello everyone. Does the backdrop support open/close swipe gesture? I ran a basic example, but gesture doesn't seem to work, only opening with the burger button
    WieFel
    @WieFel
    @proninyaroslav no, it doesn't support gestures out of the box. But I suppose you could implement it by using GestureDetector. Maybe try wrapping BackdropScaffold with GestureDetector.
    Harsh Bhikadia
    @daadu_gitlab
    Screenshot 2020-09-17 at 12.13.58 AM.png
    @proninyaroslav gesture to revealBackLayer is not recommened by MDG
    Tap on frontLayer, when backLayer is revealed, will concealBackLayer
    Harsh Bhikadia
    @daadu_gitlab
    @proninyaroslav I worked the on the fix (for issue with AnimatedSize) in fluttercommunity/backdrop#57
    Please review and test it
    Aster
    @asterd
    Hi guys.. just a question. There is a way to map the backdrop open/close status to do some "extra" action? for example I need to change appbar text background color when backdrop open.. is it possible?
    Guilherme Santos
    @gjstos
    @asterd I personally use onBackLayerConcealed and onBackLayerRevealed to change a control variable, and from there through some state management to change the title widget
    Aster
    @asterd
    @gjstos thanka
    Thanks a lot
    I have another question.. how can I correctly set a safearea inside backdrop scaffold but with a top widget with backgrround image that goes under action and system bar?
    Guilherme Santos
    @gjstos
    @asterd I think that FlexibleSpaceBar should resolve ur issue. But I'm not sure, as I've never used it before
    Gabriel Corrêa
    @bielzim0
    Hey guys, is there any way of changing the frontLayer with Backdrop.of(context)? If not is there any way of changing it?? This would help me a lot.
    Harsh Bhikadia
    @daadu_gitlab
    what do you mean by change?
    you can do that with StatefulWidget and calling setState~
    Gabriel Corrêa
    @bielzim0
    thx I thought there was a fancy way of doing it :P
    Flakerim Ismani
    @flakerimi
    Hi, how to use BackdropToggleButton as Action , default replaces Leading, when I add to actions[] it cause RenderFlex error