update README

master
lmy 6 years ago
parent ee903186a2
commit 62939be061

@ -26,6 +26,13 @@ Customizable Icons for Flutter,Inspired by [react-native-vector-icons](https://g
## Usage
To use this plugin, add `flutter_icons` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).
## Static Methods
| Prop | Description |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`getIconData`** | Returns the IconData object,eg : ```IconData iconData = AntDesign.getIconData("stepforward")``` |
| **`hasIconData`** | Checks if the name is valid in current icon set.eg: ```bool isNameValid = AntDesign.hasIconData("stepforward")```|
## Example
``` dart

@ -26,6 +26,13 @@
## 使用
要使用此插件包,请将flutter_icons作为依赖项添加到您的`pubspec.yaml`文件中,详见[dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).
## 静态方法
| Prop | Description |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`getIconData`** | 返回IconData对象供Icon使用,eg : ```IconData iconData = AntDesign.getIconData("stepforward")``` |
| **`hasIconData`** | 检查是否存在name对应的IconData对象返回布尔值eg: ```bool isNameValid = AntDesign.hasIconData("stepforward")```|
## 示例
``` dart

Loading…
Cancel
Save