FLUTTER ECOSYSTEM

pd4d10/flutter-vector-icons

適用於 Flutter 的可自訂圖示。react-native-vector-icons 的移植版本

flutter-vector-icons 專案封面
Stars
78
Forks
20
最近推送(UTC)
2023年10月20日
專案狀態
未封存
Rongjian Zhang GitHub avatar
GITHUB User

Rongjian Zhang ↗

UTC+8
語言DartC++CMakeTypeScriptRubyHTMLCSwiftKotlinObjective-C

技術主題

使用的依賴

依賴清單 2 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

flutter_vector_icons

pub

Customizable Icons for Flutter. Port of react-native-vector-icons.

Preview icons with the gallery: https://flutter-vector-icons.vercel.app

Installation

flutter pub add flutter_vector_icons

Usage

import 'package:flutter/material.dart';
import 'package:flutter_vector_icons/flutter_vector_icons.dart';

class MyWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return IconButton(
      // Variable name is the same as font name:
      //
      // AntDesign
      // Entypo
      // EvilIcons
      // Feather
      // FontAwesome
      // Foundation
      // Ionicons
      // MaterialCommunityIcons
      // MaterialIcons
      // Octicons
      // SimpleLineIcons
      // Zocial
      // FontAwesome5Brands
      // FontAwesome5Regular
      // FontAwesome5Solid

      icon: Icon(MaterialCommunityIcons.star),
      onPressed: () {
        print('Star it');
      },
    );
  }
}

Version Correspondence

flutter-vector-icons react-native-vector-icons
2.x 9.x
1.x 8.x

Development

Fonts and code are auto generated by scripts:

deno run --allow-net=data.jsdelivr.com,cdn.jsdelivr.net --allow-read=. --allow-write=. --allow-run codegen.ts

Credits

License

MIT