Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Enable e2e. #933

Merged
merged 3 commits into from
Nov 23, 2023
Merged

Enable e2e. #933

merged 3 commits into from
Nov 23, 2023

Conversation

arriolac
Copy link
Contributor

@arriolac arriolac commented Nov 21, 2023

Enable edge-to-edge on Sunflower.
Screenshot_20231121_100449
Screenshot_20231121_100408

Change-Id: I777b0977dcdeda3101d412354cb14e1d8f41b634
@arriolac arriolac requested a review from a team as a code owner November 21, 2023 18:18
HomePagerScreen(
onPlantClick = onPlantClick,
pagerState = pagerState,
modifier = Modifier.padding(it)
Modifier.padding(top = contentPadding.calculateTopPadding())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you add padding to the bottom of the screen too so it can scroll the content out from underneath the bar?

Copy link
Contributor Author

@arriolac arriolac Nov 21, 2023

Choose a reason for hiding this comment

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

There's already padding applied so it offsets correctly when you scroll all the way down in the plant list screen: https://github.com/android/sunflower/blob/main/app/src/main/java/com/google/samples/apps/sunflower/compose/plantlist/PlantListScreen.kt#L58

...though technically it doesn't take into account imePadding so let me add that.

Edit: Done in fedc539

Change-Id: I5180f86eb5aea9cee8ba19264488ca9e638b3d66
@arriolac arriolac merged commit d092c22 into main Nov 23, 2023
2 checks passed
@arriolac arriolac deleted the chris/e2e branch November 23, 2023 00:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants