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

Feature/card (retry) #1263

Merged
merged 19 commits into from
Sep 4, 2020
Merged

Conversation

andydotxyz
Copy link
Member

Description:

A basic card container with header, subheader, content and image - all optional.
We can add more to this later, such as the buttons (style challenges as they are depicted like hyperlink...?)

Deprecate Group in favour of CardContainer and use it in a few places where group was before.
Tests are just image comparison at this time as it's a pretty simple linear layout.

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.
  • Public APIs match existing style.
  • Any breaking changes have a deprecation path or have been discussed.

@andydotxyz andydotxyz changed the title Feature/card retry Feature/card (retry) Aug 26, 2020
cmd/fyne_demo/screens/container.go Show resolved Hide resolved
internal/painter/image.go Outdated Show resolved Hide resolved
widget/cardcontainer.go Show resolved Hide resolved
widget/cardcontainer_test.go Show resolved Hide resolved
Copy link
Member

@stuartmscott stuartmscott left a comment

Choose a reason for hiding this comment

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

Good progress!

widget/cardcontainer.go Outdated Show resolved Hide resolved
widget/cardcontainer.go Show resolved Hide resolved
widget/cardcontainer.go Outdated Show resolved Hide resolved
widget/cardcontainer.go Show resolved Hide resolved
widget/cardcontainer_test.go Show resolved Hide resolved
@andydotxyz
Copy link
Member Author

Re:

titles w/ image (title, subtitle, image)
titles w/ content (title, subtitle, content)
all four (title, subtitle, image, content)

To what end? If you think every permutation of options should be tested please say so - I added the ones you thought were missing, and this list is additional to that. Do you also need subtitle with content, subtitle with image, what about with just title missing as well?

@stuartmscott
Copy link
Member

Sorry, my initial list should have been more comprehensive to avoid a back and forth. I don't think we need every permutation, just the main ones a dev is expected to use.

@andydotxyz
Copy link
Member Author

OK, I think If I add titles+image and all4 we should have pretty good coverage

@andydotxyz
Copy link
Member Author

That should be everything now

@andydotxyz andydotxyz merged commit 8d60852 into fyne-io:develop Sep 4, 2020
@andydotxyz andydotxyz deleted the feature/card_retry branch September 4, 2020 21:10
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.

2 participants