vscode_material_icon_theme 5.26.0 copy "vscode_material_icon_theme: ^5.26.0" to clipboard
vscode_material_icon_theme: ^5.26.0 copied to clipboard

A Flutter package that ports the popular vscode-material-icon-theme to Flutter

vscode_material_icon_theme #

A Flutter package that ports the popular vscode-material-icon-theme to Flutter. This package provides a comprehensive set of material-style icons for use in Flutter apps, inspired by the VS Code extension.

Features #

  • Hundreds of material-style icons for files and folders.
  • Easy integration with Flutter projects.
  • Customizable icon mapping.

Showcase

Getting Started #

import 'package:vscode_material_icon_theme/vscode_material_icon_theme.dart';

import 'package:flutter_svg/flutter_svg.dart';

final widget = SvgPicture(MaterialIcons.git);

final fileIcon = SvgPicture(fileToIcon('main.dart'));
final directoryIcon = SvgPicture(directoryToIcon('lib', isExpanded: true));

Icon Naming Rule #

If the icon name starts with a digit, it is prefixed with num_ (e.g., 3d becomes num_3d).

Development #

Useful Commands #

flutter pub get
cd generate-icon-variable
npm install
npm run dev

publish #

unset PUB_HOSTED_URL
dart pub publish --dry-run
dart pub publish

TODO #

  • ✅ export vscode languageIds and pattern(write a plugin to do that)
1
likes
135
points
140
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that ports the popular vscode-material-icon-theme to Flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, vector_graphics

More

Packages that depend on vscode_material_icon_theme