-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Crdzbird/conversation messaging scaffold hi fi #354
Crdzbird/conversation messaging scaffold hi fi #354
Conversation
- Removed static title to have a more flexible widget title, this was needed to have a clean approach to the HiFi design on Figma
lib/messaging/introduce.dart
Outdated
@@ -26,7 +26,10 @@ class _IntroduceState extends State<Introduce> { | |||
Widget build(BuildContext context) { | |||
var model = context.watch<MessagingModel>(); | |||
return BaseScreen( | |||
title: 'Introduce Contacts (${selectedContactIds.length})'.i18n, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost all of the other files just have one change and that is on the title param which now requires a Widget instead of a String
lib/messaging/messages.dart
Outdated
title: 'Messages'.i18n, | ||
title: Text( | ||
'Messages'.i18n, | ||
style: tsTitleAppbar, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't love that this repeats. Maybe BaseScreen can have two parameters, String titleText
and Widget title
. Then we can just have the styling for the titleText inside of BaseScreen. What do you think @Crdzbird ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, we can have a dynamic param instead, and just based on the type we can set a default widget.
title: title, | ||
logoTitle: logoTitle, | ||
appBar: AppBar( | ||
title: title.runtimeType == String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of 2 params, we can just use one dynamic
param and based on his type set a default widget.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the second param is an absolute must, I can add it instead of the dynamic @oxtoacart
…lantern into crdzbird/conversation_messaging_scaffold_HiFi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @oxtoacart! |
This PR is to setup the Scaffold construction for the Messaging UI.
I have to update the
base_screen.dart
to have more flexibility with the components that are gonna be to be displayed.