-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why? What? Who? How? #1
Comments
The issue I'm having with this is because of what's asked in the UI at dwyl/app#305. I'm keeping the code samples simple on purpose as I want to focus on the best course-of-action, not necessarily implementation details. Way 1My obvious first step was trying to use the This can be resized to fit the whole screen. The issue is that the I tried getting drawer to just be part of the See:
I could alternatively just add a Way 2Having this problem, I tried another avenue of not using Not going to go into implementations details here, but this would basically require body: Stack(
children: [
AnimatedBuilder(
animation: _menuSlideController,
builder: (context, child) {
return FractionalTranslation(
translation: Offset(1.0 - _menuSlideController.value, 0.0),
child: _isMenuClosed() ? const SizedBox() : const SlidingMenu(),
);
},
),
],
), This yields the following result. 330260234_5702550336535123_8920217462815251108_n.mp4It may seem the correct solution but I notice a clear performance difference when compared with the Way 3To try and fix the issue of not having to use a This only works with named routes. builder: (context, child) => HomePage(child: child),
initialRoute: '/',
routes: {
'/': (context) => HomePage(),
'/second': (context) => SecondRoute(),
}, However, two problems still arise with this option:
As per what was discussed in standup, @nelsonic stated that using named routes should not be considered due to performance issues that may arise in the future. With option 3 (and by consequence, option 2), all it remains is option 1 (from what was attempted). I don't know what other avenue I should try or if I should attempt to try another way, even though it feels "hacky" at this point. If you want to give an opinion on this @nelsonic , go for it. |
I'm actually not concerned about having the "App Bar" visible when the In fact What HeyFlutter.com demonstrates in this If there is a widely viewed tutorial for doing this I don't consider it to be "difficult" to implement. My reading of: https://stackoverflow.com/questions/54227094/flutter-drawer-width-modification drawer: Container(
width: MediaQuery.of(context).size.width * 1.0,
child: Drawer()), The But ... quite happy to UX-test this real people to find out Nobody is going to call-out Google gets things "wrong" a lot more than they get them "right". For future reference: There will be exceptions to this in the future where we want the UI to be "innovative" (i.e. non-standard) Also, for future reference: this isn't a matter of "opinion". Not suggesting that's what you're doing, don't worry. |
You are right, implementing a simple drawer the way you want to (now that it was clarified) is easy to implement. Making it full-width is simple, as well. It's what I did first - see 7d7d118 My reluctance to even use What wasn't clear to me and was actually the main point of my deviating greatly from what you originally intended was the AppBar. The original issue in dwyl/app#305 doesn't really specify this, but one can easily incorrectly infer from the picture that is supposed to be shown and persisted while transitioning (the Again, I should have asked to clarify but, to me, it seemed "evident" enough that it you wanted it to be that way (turned out, after all this time, it wasn't). Personally, to me, after you've introduced this picture: It made much more sense and it's much clearer for me. The Regardless, in the time between me asking for "the way to go" in #1 (comment) and you answering, I've gone through a way of something akin to a drawer but tries to persist the So, as for now, I'm doing the finishing touches to make the I don't find this time wasted because now we'll have documented two different ways, even if we go for one, the other touches on topics that are important, which concern withNavigation, that we will certainly have to deal with along the way. Lesson learned on communication and probably overthinking on my part. |
Apologies for delayed reply. I had 80% of this written before lunch |
I think we can consider this |
Why?
As we're building our
mvp
, and doing so in Flutter, we want the onboarding experience to be as seamless and as easy as possible.This concept of Progressive UI/UX will be exemplified in this repo, where navigation will only be shown after a certain action.
The navigation will open up to a full screen, where user can be shown which item to go for and redirecting to the page accordingly.
For more information about why this repo exists, please check dwyl/app#305.
The text was updated successfully, but these errors were encountered: