From aece86f1c7129e77ef81de9e6d3de63a8cb214fe Mon Sep 17 00:00:00 2001
From: lmy <2534290808@qq.com>
Date: Tue, 12 Nov 2019 20:27:39 +0800
Subject: [PATCH] update README.md
---
README.md | 31 +++++++------------------------
README_zh-CN.md | 21 +++++++--------------
2 files changed, 14 insertions(+), 38 deletions(-)
diff --git a/README.md b/README.md
index 3494f18..93fdf31 100644
--- a/README.md
+++ b/README.md
@@ -45,23 +45,6 @@ To use this plugin, add `flutter_icons` as a [dependency in your pubspec.yaml fi
| transitionBuilder | Transition animation function between the selected Icon and the unselected Icon |
-
-## 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")```|
-
-
-## IconExplorer
-
-Try to run the `example` project Or download [apk](https://github.com/flutter-studio/flutter-icons/tree/master/example/apk/app-release.apk), there you can also search for any icon.
-
-
-
-
-
## Example
``` dart
@@ -69,12 +52,12 @@ Try to run the `example` project Or download [apk](https://github.com/flutter-st
import 'package:flutter_icons/flutter_icons.dart';
import 'package:flutter/material.dart';
-Icon(Ionicons.getIconData("ios-search"));
-Icon(AntDesign.getIconData("stepforward"));
-Icon(FontAwesome.getIconData("glass"));
-Icon(MaterialIcons.getIconData("ac-unit"));
-Icon(FontAwesome5.getIconData("address-book"));
-Icon(FontAwesome5.getIconData("address-book",weight: IconWeight.Solid));
-Icon(FontAwesome5.getIconData("500px", weight: IconWeight.Brand));
+Icon(AntDesign.stepforward),
+Icon(Ionicons.ios_search),
+Icon(FontAwesome.glass),
+Icon(MaterialIcons.ac_unit),
+Icon(FontAwesome5.address_book),
+Icon(FontAwesome5Solid.address_book),
+Icon(FontAwesome5Brands.$500px)
```
### Special thanks to react native vector ICONS library and its authors
diff --git a/README_zh-CN.md b/README_zh-CN.md
index 6277bcf..c9f3231 100644
--- a/README_zh-CN.md
+++ b/README_zh-CN.md
@@ -27,13 +27,6 @@
## 使用
要使用此插件包,请将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
@@ -41,12 +34,12 @@
import 'package:flutter_icons/flutter_icons.dart';
import 'package:flutter/material.dart';
-Icon(Ionicons.getIconData("ios-search"));
-Icon(AntDesign.getIconData("stepforward"));
-Icon(FontAwesome.getIconData("glass"));
-Icon(MaterialIcons.getIconData("ac-unit"));
-Icon(FontAwesome5.getIconData("address-book"));
-Icon(FontAwesome5.getIconData("address-book",weight: IconWeight.Solid));
-Icon(FontAwesome5.getIconData("500px", weight: IconWeight.Brand));
+Icon(AntDesign.stepforward),
+Icon(Ionicons.ios_search),
+Icon(FontAwesome.glass),
+Icon(MaterialIcons.ac_unit),
+Icon(FontAwesome5.address_book),
+Icon(FontAwesome5Solid.address_book),
+Icon(FontAwesome5Brands.$500px)
```
### 特别感谢react-native-vector-icons插件包及其开发者们