搜索插件、代码仓与 APP 分类

插件详情v1.3.6

vector_graphics_compiler

一个编译器,用于将 SVG 转换为 `package:vector_graphics` 使用的二进制格式。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
696万
喜欢数
124
Pub 分数
140

安装插件

flutter pub add vector_graphics_compiler

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

vector_graphics_compiler 包是一个工具,可将 SVG(可缩放矢量图形)文件转换为 `package:vector_graphics` 库使用的紧凑二进制格式。这使得在 Flutter 应用程序中跨多个平台(包括 Android、iOS、Web、macOS、Windows 和 Linux)高效地运行时渲染矢量图形成为可能。通过提前编译 SVG 文件,该工具可减少应用大小并提升性能,相比在运行时解析 SVG 文件更具优势。此编译器专为希望嵌入高质量、可缩放矢量资源而又不牺牲速度或包大小的开发者设计。

适合场景

  • 在Flutter应用中嵌入优化的矢量图形
  • 通过预编译 SVG 来减小应用包大小
  • 改进向量渲染的运行时性能
  • 支持多平台矢量图形
  • 在构建管道中自动化 SVG 到二进制的转换
  • 与 CI/CD 工作流集成

主要特点

  • 将 SVG 转换为二进制格式
  • 为运行时使用优化矢量图形
  • 支持所有主要的 Flutter 平台
  • 与 Flutter 的构建系统集成
  • 提供命令行界面
  • 比运行时SVG解析更快的渲染

适合对象

  • 使用矢量图形的Flutter开发人员
  • 需要小包大小的应用
  • 性能敏感的 UI 与可扩展资源
  • Teams automating asset processing
  • 面向多个平台的开发者
  • 具有大量 SVG 资产的项目

使用建议

  • 构建过程中需要设置
  • SVG 必须在运行时之前进行处理
  • 仅限静态矢量资产
  • 不适用于动态SVG生成
  • 依赖于 `package:vector_graphics`
  • 构建时编译开销

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Flutter Packages

Release Status Flutter CI Status

This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages directory to see all packages.

These packages are also available on pub.

Issues

Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled "package".

Contributing

If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.

If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.

Packages

These are the packages hosted in this repository:

Package Pub Points Usage Issues Pull requests
animations pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
camera pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cross_file pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cupertino_icons pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cupertino_ui pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
espresso pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
extension_google_sign_in_as_googleapis_auth pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
file_selector pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_lints pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_plugin_android_lifecycle pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_svg pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_svg_test pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
go_router pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
go_router_builder pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_adsense pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_fonts pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_maps_flutter pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_sign_in pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
image_picker pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
interactive_media_ads pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
in_app_purchase pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
local_auth pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
material_ui pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
metrics_center pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
path_parsing pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
path_provider pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
pigeon pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
pointer_interceptor pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
plugin_platform_interface pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
quick_actions pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_identity_services_web pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
rfw pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
shared_preferences pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
two_dimensional_scrollables pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
url_launcher pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics_codec pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics_compiler pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
video_player pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
web_benchmarks pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
webview_flutter pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
xdg_directories pub package pub points downloads GitHub issues by-label GitHub pull requests by-label

所属分类

依赖

依赖清单 7 项

源码仓库

使用此插件的项目