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
Add sample code to Icons Class #31725
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding sample docs! Please see my suggestions for your PR and let me know if you have any questions.
@@ -34,10 +55,12 @@ class Icons { | |||
// BEGIN GENERATED | |||
|
|||
/// <i class="material-icons md-36">360</i> — material icon named "360". | |||
static const IconData threesixty = IconData(0xe577, fontFamily: 'MaterialIcons'); | |||
static const IconData threesixty = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should revert all of these changes back to one-liners, since they're not related to your current PR
@@ -21,6 +21,27 @@ import 'package:flutter/widgets.dart'; | |||
/// uses-material-design: true | |||
/// ``` | |||
/// | |||
/// {@tool snippet --template=stateless_widget_scaffold} | |||
/// | |||
/// This example shows how to use [Icons] to create three icons: fast rewind, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example creates three [Icons], fast_rewind, play_arrow and fast_forward, in that order.
@@ -21,6 +21,27 @@ import 'package:flutter/widgets.dart'; | |||
/// uses-material-design: true | |||
/// ``` | |||
/// | |||
/// {@tool snippet --template=stateless_widget_scaffold} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Nice-to-have] Adding a sample output image like ListTile docs. See https://github.com/flutter/assets-for-api-docs for example pull requests.
Let me know if you have any questions about how to get this set up!
Description
Add sample code to Material Icons class
Related Issues
Related to #21136
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze --flutter-repo
) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?