Skip to content
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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

New ui bug-report-page #1417

wants to merge 1 commit into from

Conversation

goncalopinto1
Copy link

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.

Captura de ecrã 2024-12-19, às 15 55 05

Review checklist

  • Terms and conditions reflect the current change
  • Contains enough appropriate tests
  • If aimed at production, writes a new summary in whatsnew/whatsnew-pt-PT
  • Properly adds an entry in changelog.md with the change
  • If PR includes UI updates/additions, its description has screenshots
  • Behavior is as expected
  • Clean, well-structured code

Copy link
Member

@thePeras thePeras left a 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

Comment on lines +90 to +91
bugReportIntro(context),
dropdownBugSelectWidget(context),
Copy link
Member

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

Comment on lines +164 to +166
consentBox(context),

submitButton(context),
Copy link
Member

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)),
Copy link
Member

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

Comment on lines +93 to +102
/// `Leave feedback
String get leave_feedback {
return Intl.message(
'Leave feedback',
name: 'leave feedback',
desc: '',
args: [],
);
}

Copy link
Member

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?

Comment on lines +34 to +43
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'),
};
Copy link
Member

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

@thePeras thePeras requested a review from a team December 19, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement bug report page
2 participants