chat adaptive layout and general improvements#881
Conversation
| final convo = notification.convo()!; | ||
| avatar = Consumer( | ||
| builder: (ctx, ref, child) { | ||
| builder: (context, ref, child) { |
There was a problem hiding this comment.
Actually I renamed inner context to ctx so that it can be distinguished with outer context.
|
tested. love it! |
|
Found one problem when routing to the dashboard though: |
gnunicorn
left a comment
There was a problem hiding this comment.
nice. just a glance overall, as we agreed to do the proper routing later. but still a few remarks, I'd like to have addressed before merging...
| Routes.chatroom.name, | ||
| pathParameters: {'roomId': roomId}, | ||
| ); | ||
| if (!isDesktop(context)) { |
There was a problem hiding this comment.
not fond of this, but good enough for now. let's work on the actual routing in another PR
| ? const RoomPage() | ||
| : const SizedBox( | ||
| child: Center( | ||
| child: Text('Tap on any room to see full preview'), |
There was a problem hiding this comment.
preview?
| child: Text('Tap on any room to see full preview'), | |
| child: Text('Select any room to view it'), |
but maybe we also want the designers to come up with something better...
| final convo = ref.watch(currentConvoProvider); | ||
| return LayoutBuilder( | ||
| builder: (context, constraints) { | ||
| return Row( |
There was a problem hiding this comment.
did you ever test this on a completely fresh empty account without any chats yet? what does that look like?
There was a problem hiding this comment.
No. I think it should reflect the empty placeholder for overview. But for RoomPage(), we might want to show empty or just hide it.
| child: SettingsMenu(), | ||
| ), | ||
| Expanded(child: child), | ||
| const Flexible(flex: 1, child: SettingsMenu()), |
There was a problem hiding this comment.
are we actually certain, this works on width == 771? Because 771/3 = 257, which is 100 smaller than the 350 it had before ...
| flutter_mentions: ^2.0.1 | ||
| flutter_mentions: | ||
| git: | ||
| url: https://github.com/gtalha07/flutter_mentions.git |
There was a problem hiding this comment.
Currently, flutter_mentions highly requested feature was to include suggestionListWidth so we can change the width of suggestion list container. I did that in my forked version as its needed for making it adaptive across different screen sizes. I am looking to open contribution PR for it but also seeing the repository being not actively maintained .i.e. last was 2 yrs ago...
There was a problem hiding this comment.
Seems like the PR is already opened for review and merge, but no updates on it yet...
There was a problem hiding this comment.
thanks for explanation. If we need to maintain a fork, we probably want to move it into our org though ...
I can't seem to reproduce this on my side. Been navigating in between on debug but no errors. Could you provide more detail about the issue .i.e. platform, user account etc. (Not sure if this issue is related with PR either) |
|
@gtalha07 well, then ignore this issue for now. if it comes back up, we'll deal with it then. |



Uh oh!
There was an error while loading. Please reload this page.