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

Proper layout of AssistChip in the archive portion of the timetable detail screen. #489

Merged

Conversation

toastmeister1
Copy link
Contributor

@toastmeister1 toastmeister1 commented Aug 14, 2023

Issue

Overview (Required)

Make the following modifications

  • Change "ドキュメント" to "資料
  • Change the icon from the Filled style to the Outline style to match the design of the Figma.
  • Implementation of ArchiveSectionIconButton using slot api concept

AssistChip was not able to set the spacing between the icon and label.
Because of this, I noticed that existing code also had this problem, bundling the icon and label together in the 'label' parameter.
I didn't think this was right, so I created a TimeTableIconButton composable to represent the two buttons.

Links

Screenshot

Before After

"ドキュメント" to "資料
- Change Filled icon to Outline
- Implementation of TimeTableIconButton using slot api concept
@github-actions
Copy link

@github-actions
Copy link

Hi @toastmeister1! Codes seem to be unformatted. To resolve this issue, please run ./gradlew spotlessKotlinApply and fix the results of ./gradlew lintDebug.. Thank you for your contribution.

@github-actions
Copy link

github-actions bot commented Aug 14, 2023

Test Results

27 tests   27 ✔️  2m 53s ⏱️
  7 suites    0 💤
  7 files      0

Results for commit 047a129.

♻️ This comment has been updated with latest results.

@github-actions github-actions bot temporarily deployed to deploygate-distribution August 14, 2023 15:56 Inactive
@github-actions github-actions bot temporarily deployed to deploygate-distribution August 14, 2023 16:13 Inactive
Comment on lines +220 to +225
private fun ArchiveSectionIconButton(
icon: @Composable () -> Unit,
label: @Composable () -> Unit,
onClick: () -> Unit,
modifier: Modifier = Modifier,
iconSpacing: Dp = 8.dp,
Copy link
Member

Choose a reason for hiding this comment

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

Amazing! You use the Slot API pattern appropriately! Are you a Compose professional, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've always been interested in Compose, so I gave it a try.
I'm glad you liked it.

I hope your conference will be a success :)

Copy link
Member

@takahirom takahirom left a comment

Choose a reason for hiding this comment

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

Great!

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.

Proper layout of AssistChip in the archive portion of the timetable detail screen.
2 participants