Skip to content

Conversation

@schultek
Copy link
Contributor

@schultek schultek commented Nov 18, 2025

Add a SummaryCard component for previewing / reviewing the outline of a tutorial.

  • As Preview: Bildschirmfoto 2025-11-18 um 09 03 22
  • As Review: Bildschirmfoto 2025-11-18 um 09 03 51

@schultek schultek requested a review from parlough November 18, 2025 08:05
@schultek schultek requested review from a team and sfshaza2 as code owners November 18, 2025 08:05
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @schultek, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request delivers a new SummaryCard component, enhancing the presentation of tutorial outlines. This component provides a structured way to display key information, such as learning objectives or accomplishments, for tutorials. It is designed to be highly configurable through YAML content, allowing for dynamic and visually appealing summaries within the application.

Highlights

  • New SummaryCard Component: Introduces a custom SummaryCard component designed for previewing and reviewing tutorial outlines, providing a structured way to display key information.
  • YAML-based Content Definition: The component's content (title, subtitle, and items) is defined using YAML, allowing for flexible and structured data input directly within the component tag.
  • Styling and Interactivity: Includes dedicated SCSS for styling the card, supporting both simple list items and expandable detail sections with Material Icons for enhanced user experience.
  • Integration into Component System: The SummaryCard is registered as an embeddable component within the application's main component registry, making it available for use across the site.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new SummaryCard component, which is a great addition for previewing and reviewing tutorial content. The implementation looks solid, with a new Dart component, a data model for YAML parsing, and corresponding styles. I've provided a few suggestions to improve robustness and styling. Specifically, I recommend enforcing content validation in production builds and making some adjustments to the SCSS for better browser consistency and readability. Overall, great work!

@flutter-website-bot
Copy link
Collaborator

flutter-website-bot commented Nov 18, 2025

Visit the preview URL for this PR (updated for commit c115b63):

https://flutter-docs-prod--pr12714-feat-summary-card-fscpacor.web.app

Copy link
Member

@parlough parlough left a comment

Choose a reason for hiding this comment

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

I love it, thanks @schultek!

Let's land this for now and we can revisit differentiating the review version, perhaps with an optional image or checkmark or whatever.

Comment on lines +55 to +59
for (final item in model.items) buildSummaryItem(item),
]);
}

Component buildSummaryItem(SummaryCardItem item) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
for (final item in model.items) buildSummaryItem(item),
]);
}
Component buildSummaryItem(SummaryCardItem item) {
for (final item in model.items) _buildSummaryItem(item),
]);
}
Component _buildSummaryItem(SummaryCardItem item) {

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.

3 participants