From 0a0f85a9a28769dbf24913a422bb10e770157941 Mon Sep 17 00:00:00 2001 From: lmy <2534290808@qq.com> Date: Fri, 17 Apr 2020 22:23:19 +0800 Subject: [PATCH] update example --- example/android/app/build.gradle | 2 +- example/android/gradle.properties | 1 + example/ios/Flutter/flutter_export_environment.sh | 10 ++++++++++ example/lib/main.dart | 7 ++++++- example/pubspec.yaml | 6 ++++-- 5 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 example/ios/Flutter/flutter_export_environment.sh diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index cd759d8..76887b9 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -25,7 +25,7 @@ apply plugin: 'com.android.application' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 27 + compileSdkVersion 28 lintOptions { disable 'InvalidPackage' diff --git a/example/android/gradle.properties b/example/android/gradle.properties index 8bd86f6..7be3d8b 100644 --- a/example/android/gradle.properties +++ b/example/android/gradle.properties @@ -1 +1,2 @@ org.gradle.jvmargs=-Xmx1536M +android.enableR8=true diff --git a/example/ios/Flutter/flutter_export_environment.sh b/example/ios/Flutter/flutter_export_environment.sh new file mode 100644 index 0000000..e5b6c73 --- /dev/null +++ b/example/ios/Flutter/flutter_export_environment.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# This is a generated file; do not edit or check into version control. +export "FLUTTER_ROOT=D:\develop\flutter" +export "FLUTTER_APPLICATION_PATH=D:\Code\flutter-icons\example" +export "FLUTTER_TARGET=lib\main.dart" +export "FLUTTER_BUILD_DIR=build" +export "SYMROOT=${SOURCE_ROOT}/../build\ios" +export "FLUTTER_FRAMEWORK_DIR=D:\develop\flutter\bin\cache\artifacts\engine\ios" +export "FLUTTER_BUILD_NAME=1.0.0" +export "FLUTTER_BUILD_NUMBER=1" diff --git a/example/lib/main.dart b/example/lib/main.dart index dd4ce71..27adaee 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -62,7 +62,12 @@ class _MyHomePageState extends State { Icon(MaterialIcons.ac_unit), Icon(FontAwesome5.address_book), Icon(FontAwesome5Solid.address_book), - Icon(FontAwesome5Brands.$500px) + Icon(FontAwesome5Brands.$500px), + Icon(FlutterIcons.$500px_ent), + Icon(FlutterIcons.$500px_faw5d), + Icon(WeatherIcons.wi_alien), + Icon(WeatherIcons.wi_cloud), + Icon(WeatherIcons.wi_day_rain) ], ), ), diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 9e38b2a..22dfb69 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -20,8 +20,10 @@ dependencies: # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.2 flutter_icons: - path: ../ - +# path: ../ + git: + url: https://github.com/flutter-studio/flutter-icons.git + ref: 1.1.0 dev_dependencies: flutter_test: sdk: flutter