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

feat: make entire tip resource area clickable #89

Merged
merged 10 commits into from
Jun 3, 2024

Conversation

M4dhav
Copy link
Contributor

@M4dhav M4dhav commented May 27, 2024

fixed issue as mentioned in #86

@guyluz11 guyluz11 linked an issue May 27, 2024 that may be closed by this pull request
@M4dhav M4dhav requested a review from guyluz11 May 28, 2024 05:30
icon: const Icon(Icons.link),
),
],
body: InkWell(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The body should open and close when clicked, not open the link

@@ -27,7 +27,7 @@ class AllTipsPage extends StatelessWidget {
trailing: const Icon(Icons.arrow_forward),
onTap: () => Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => TipInformationPage(tip),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no reason for change

@M4dhav M4dhav requested a review from guyluz11 May 30, 2024 11:12
Copy link
Owner

@guyluz11 guyluz11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You missed a couple of comments

@M4dhav
Copy link
Contributor Author

M4dhav commented May 31, 2024

Could you please elaborate? I can't seem to find any comments added to the files in this PR.

@guyluz11
Copy link
Owner

guyluz11 commented Jun 1, 2024

Could you please elaborate? I can't seem to find any comments added to the files in this PR.

image

.

image

@M4dhav
Copy link
Contributor Author

M4dhav commented Jun 1, 2024

image
I'm not sure why you're unable to see the replies but I have made them

@guyluz11
Copy link
Owner

guyluz11 commented Jun 1, 2024

Hey,
Can you fix the conflicts?

Thanks

icon: const Icon(Icons.link),
),
],
body: InkWell(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The body should open and close when clicked, not open the link

@M4dhav M4dhav requested a review from guyluz11 June 1, 2024 10:48
@M4dhav
Copy link
Contributor Author

M4dhav commented Jun 1, 2024

I took the liberty of replacing Icon Button with Icon as InkWell makes the entire area clickable and makes Icon Button redundant. I also added Padding to the text to improve the look

@guyluz11
Copy link
Owner

guyluz11 commented Jun 1, 2024

Maybe I wasn't clear

Area number 1 only expends and retracts when clicked.
Area number 2 is the only place that opens the link.

image

It is not what you have done, please fix

@M4dhav
Copy link
Contributor Author

M4dhav commented Jun 1, 2024

I guess there was a communication gap, I will modify my implementation

@M4dhav
Copy link
Contributor Author

M4dhav commented Jun 2, 2024

Still working on this, I can't unrequest reviews so don't review it yet

Copy link
Owner

@guyluz11 guyluz11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Still working on this, I can't unrequest reviews so don't review it yet"

Here you go

@M4dhav
Copy link
Contributor Author

M4dhav commented Jun 2, 2024

Alright, I'm done

@M4dhav M4dhav requested a review from guyluz11 June 2, 2024 19:39
Comment on lines +100 to +104
isExpanded.forEach((key, value) {
isExpanded[key] = false;
});
isExpanded[isExpanded.keys
.elementAt(panelIndex)] = expanded;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this code, it does not look clean.

@guyluz11 guyluz11 merged commit e6655ec into guyluz11:dev Jun 3, 2024
2 checks passed
@M4dhav M4dhav deleted the tip_buttons branch June 3, 2024 06:25
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.

Entire Area is not clickable in Tip Details Page
2 participants