Skip to content

[Jetnews] Update to Material3 #964

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

Merged
merged 1 commit into from
Aug 24, 2022
Merged

[Jetnews] Update to Material3 #964

merged 1 commit into from
Aug 24, 2022

Conversation

JolandaVerhoef
Copy link
Contributor

No description provided.

Change-Id: Idf0ff3795174417ebfbe861a0f8cea3069927b4b
@JolandaVerhoef JolandaVerhoef requested a review from a team as a code owner August 24, 2022 17:25
Copy link
Contributor

@arriolac arriolac left a comment

Choose a reason for hiding this comment

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

LGTM just some minor comments

// implementation(libs.androidx.compose.runtime.livedata)
// implementation(libs.androidx.compose.ui.tooling.preview)
// debugImplementation(libs.androidx.compose.ui.test.manifest)
// debugImplementation(libs.androidx.compose.ui.tooling)
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove? Do you also want to add the dependencies to the .toml file or is that what the TODO is for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The todo is to remove the explicit dependencies and use these commented out versions again, once all Compose & Material3 dependencies align again

@@ -78,9 +77,8 @@ fun HomeRoute(
* @param onInteractWithArticleDetails (event) indicate that the article details were interacted
* with
* @param openDrawer (event) request opening the app drawer
* @param scaffoldState (state) state for the [Scaffold] component on this screen
// * @param snackbarHostState (state) state for the [Scaffold] component on this screen
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove '//'?

*/
@Composable
fun InterestsRoute(
interestsViewModel: InterestsViewModel,
isExpandedScreen: Boolean,
openDrawer: () -> Unit,
scaffoldState: ScaffoldState = rememberScaffoldState()
snackbarHostState: SnackbarHostState = remember { SnackbarHostState() }
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we have a rememberSnackbarHostState method defined? I see this pattern used elsewhere

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 don't know? It's not part of the public API, so I just used what's being used elsewhere. Something to discuss with @astamato maybe?

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, I'd leave as is for now. All the rememberX functions ive come across do smth more complex than just remember a single value.

@JolandaVerhoef JolandaVerhoef merged commit e9859ac into main Aug 24, 2022
@JolandaVerhoef JolandaVerhoef deleted the change-200711 branch August 24, 2022 17:48
vfishv added a commit to vfishv/compose-samples that referenced this pull request Sep 25, 2022
* commit '5bc3451b11f9aae111b8a6dca0199a317c997a2b': (331 commits)
  Updating to safe flow collection with collectAsStateWithLifecycle() (android#970)
  [Jetsurvey] Converted to use Material 3 (android#954)
  [JetNews] Remove invalid comment (android#966)
  [Jetnews] Update to Material3 (android#964)
  Compose latest (android#961)
  Disable auto creation of deps PRs for renovate (android#960)
  Version Catalog support  (android#950)
  Fixing: Remove Unused If-Else condition (android#884)
  [Jetcaster] Fix recomposition loop in verticalGradientScrim (android#946)
  Fix readme image size (android#926)
  Fix a11y bugs (android#914)
  Update Androidx Lifecycle deps to v2.5.1 (android#932)
  Update plugin com.android.test to v7.2.2 (android#931)
  [Crane] Fix destinations not in list issue. (android#938)
  Update main | Compose 1.2.1 | Compiler 1.3.0 | Kotlin 1.7.10 (android#924)
  Update accompanist_version to v0.25.1
  added licence to shapes
  added shapes for material
  Added a fix to not show back button on permanent drawer, added Material shapes
  [All] Updating to Compose 1.2 (android#905)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants