NishchayShakya1/redirect_icon
一个 Flutter 包,可帮助您构建美观的可点击图标,这些图标可重定向到 URL。
- Stars
- 4
- Forks
- 0
- 最近推送(UTC)
- 2022年5月30日
- 项目状态
- 未归档
技术话题
使用的依赖
依赖清单 6 项
- dartdoc
^5.1.2 - flutter
{"sdk":"flutter"} - url_launcher
^6.0.12 - flutter_test开发依赖
{"sdk":"flutter"} - flutter_lints开发依赖
^2.0.0 - lints开发依赖
^2.0.0
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
展开 / 收起项目 README
Redirect Icon
Redirect Icon package lets you add a beautiful clickable Icon to your Flutter app.
Installation
- Add the latest version of package to your pubspec.yaml (and run
dart pub get):
dependencies:
redirect_icon: ^0.0.1
- Import the package and use it in your Flutter App.
import 'package:redirect_icon/redirect_icon.dart';
Example
There are a number of properties that you can modify:
- url
- icon
- radius
- size
- iconColor
- circleAvatarColor
|
https://raw.githubusercontent.com/NishchayShakya1/images/main/Untitled%20design.png |
Getting Error
Add these in your android/app/src/main/AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.yourpackagename">
<uses-permission android:name="android.permission.INTERNET"/>
<queries>
<!-- If your app opens https URLs -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
<!-- If your app makes calls -->
<intent>
<action android:name="android.intent.action.DIAL" />
<data android:scheme="tel" />
</intent>
<!-- If your app emails -->
<intent>
<action android:name="android.intent.action.SEND" />
<data android:mimeType="*/*" />
</intent>
</queries>
</manifest>