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

Add icon in comments to be able to preview it #49

Closed
lukaskurz opened this issue Sep 9, 2022 · 2 comments
Closed

Add icon in comments to be able to preview it #49

lukaskurz opened this issue Sep 9, 2022 · 2 comments

Comments

@lukaskurz
Copy link

Would be cool, if we could use the same logic that the inbuilt material icons use to display the icon in the autocomplete feature of the IDE.

/// <i class="material-icons-round md-36">timer_off</i> &#x2014; material icon named "timer off" (round).
static const IconData timer_off_rounded = IconData(0xf023b, fontFamily: 'MaterialIcons');

/// <i class="material-icons-outlined md-36">timer_off</i> &#x2014; material icon named "timer off" (outlined).
static const IconData timer_off_outlined = IconData(0xf449, fontFamily: 'MaterialIcons');

/// <i class="material-icons md-36">tips_and_updates</i> &#x2014; material icon named "tips and updates".
static const IconData tips_and_updates = IconData(0xf058d, fontFamily: 'MaterialIcons');

Like this:

image

@lublak
Copy link

lublak commented Mar 10, 2023

this would be very helpfull for users of vscode

@ziofat
Copy link
Owner

ziofat commented Jun 9, 2023

It is not possible, because VSCode does not accept extra css file injected to documentation.

The offical icons can be previewd is because the "Dart-Code" extension transfer the comments to images.

I can add these comments but it will only work on pub.dev

@ziofat ziofat closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2023
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

No branches or pull requests

3 participants