-
Notifications
You must be signed in to change notification settings - Fork 19
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
New ui bug-report-page #1417
base: develop
Are you sure you want to change the base?
New ui bug-report-page #1417
Conversation
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.
The design is looking great!
Some questions and suggestions
bugReportIntro(context), | ||
dropdownBugSelectWidget(context), |
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.
Can we put the code direct here? Please
consentBox(context), | ||
|
||
submitButton(context), |
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.
Again, these are simple widget that don't need helper methods, just put the code right away
), | ||
enabledBorder: OutlineInputBorder( | ||
borderRadius: BorderRadius.circular(8.0), | ||
borderSide: const BorderSide(color: Color.fromRGBO(102, 9, 16, 1)), |
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.
hard coded values are not recommended. Get them form theme
/// `Leave feedback | ||
String get leave_feedback { | ||
return Intl.message( | ||
'Leave feedback', | ||
name: 'leave feedback', | ||
desc: '', | ||
args: [], | ||
); | ||
} | ||
|
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.
Did you put this directly in this file?
final Map<int, (String, String)> bugDescriptions = { | ||
0: const ('Detalhe visual', 'Visual detail'), | ||
1: const ('Erro', 'Error'), | ||
2: const ('Sugestão de funcionalidade', 'Suggestion'), | ||
3: const ( | ||
'Comportamento inesperado', | ||
'Unexpected behaviour', | ||
), | ||
4: ('Outro', 'Other'), | ||
}; |
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.
This could be an opportunity to just list the items keys and deal with the translations at the l10n files
Closes #1350
Created a new file called 'form2.dart' that it's a copy of 'form.dart' and in that new file I did some ui changes.
I also created a new string in 'I10n.dart' that includes the title of the page.
Review checklist
whatsnew/whatsnew-pt-PT
changelog.md
with the change