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

flutter_sfsymbols 封面
插件详情v2.0.0

flutter_sfsymbols

一个新的 Flutter 包。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1470
喜欢数
44
Pub 分数
140

安装插件

flutter pub add flutter_sfsymbols

插件介绍

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

一个 Flutter 包,提供对 Apple 的 SF Symbols 的访问,使开发者能够轻松地将可缩放的系统图标集成到他们的 Flutter 应用程序中,适用于 iOS、Android、Web、macOS、Windows 和 Linux。该包提供了一个简单的 API,可通过名称引用 SF Symbols,确保图标风格一致,并适应平台的设计语言。它支持动态调整大小和颜色自定义,非常适合创建精致、原生风格的用户界面。该包注重性能和跨平台兼容性,简化了图标管理,无需外部资源。

适合场景

  • 在跨平台应用中集成原生 iOS 风格图标
  • 在 Apple 和非 Apple 平台上创建一致的用户界面
  • 通过使用系统图标减少应用包大小
  • 通过可扩展的矢量图标提升可访问性
  • 设计具有动态图标主题的自适应界面

主要特点

  • 直接访问 SF Symbols 库
  • 跨平台支持(iOS、Android、Web、macOS、Windows、Linux)
  • 可缩放矢量图标
  • 通过命名引用实现轻松集成
  • 支持动态颜色和大小调整

适合对象

  • 针对苹果生态系统的开发者
  • 使用原生美学构建跨平台应用的团队
  • 项目优先考虑最小的资产开销
  • 寻求一致图标集的UI设计师
  • 需要可访问且与分辨率无关的图形的应用程序

使用建议

  • 仅限目标平台上可用的 SF 符号
  • 可能需要为非iOS平台提供回退方案
  • 并非所有符号在所有操作系统上的显示效果都完全相同
  • 取决于底层平台的 SF 符号可用性
  • 最适合苹果图标风格与设计目标一致的应用程序

原始 README

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

flutter_sfsymbols

A new Flutter package required SFSymbol icons.
This plugin support all ios and android devices.

Install

add flutter_sfsymbols into your pubspec.yaml

dependencies:
 flutter_sfsymbols: ^1.0.0

and you need add fonts into your pubspec.yaml too

fonts:
  - family: sficonsets
    fonts:
      - asset: packages/flutter_sfsymbols/fonts/sficonsets.ttf

All Icons

Find all icons at
https://framework7.io/icons/ You can also use Apple SF symbols tool to browse all icon sets.

Usage

import 'package:flutter_sfsymbols/flutter_sfsymbols.dart';

const Icon(SFSymbols.airplane),
const Icon(SFSymbols.ant_circle_fill),
const Icon(SFSymbols.app_badge_fill),

IMPORTANT

All SF Symbols shall be considered to be system-provided images as defined in the Xcode and Apple SDKs license agreements and are subject to the terms and conditions set forth therein. You may not use SF Symbols—or glyphs that are substantially or confusingly similar—in your app icons, logos, or any other trademark-related use. Apple reserves the right to review and, in its sole discretion, require modification or discontinuance of use of any Symbol used in violation of the foregoing restrictions, and you agree to promptly comply with any such request.

所属分类

源码仓库

使用此插件的项目