https://github.com/wayaer/flutter_curiosity
集成部分原生功能,支持ios 、android、macOS、windows、linux。
https://github.com/wayaer/flutter_curiosity
android ios macos
Last synced: 4 months ago
JSON representation
集成部分原生功能,支持ios 、android、macOS、windows、linux。
- Host: GitHub
- URL: https://github.com/wayaer/flutter_curiosity
- Owner: Wayaer
- License: mit
- Created: 2019-12-09T09:28:41.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-02-13T06:50:52.000Z (over 1 year ago)
- Last Synced: 2025-04-05T13:03:10.228Z (about 1 year ago)
- Topics: android, ios, macos
- Language: Dart
- Homepage:
- Size: 2.01 MB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_curiosity
## 集成部分原生功能,支持 IOS Android macOS Windows Linux
### android
- 自动 添加 android http 允许请求配置
- 自动 添加 FileProvider 配置至 AndroidManifest
- 按需要 添加以下权限
```html
```
### 介绍
- 原生方法 [获取GPS状态、获取app信息、监听键盘状态、获取android已安装应用、监听android activity result]
```dart
void fun() {
Curiosity().native.fun();
}
```
- 桌面端方法
```dart
void fun() {
Curiosity().desktop.fun();
}
```
- 桌面端窗口尺寸设置(支持 macOS Windows Linux)
```dart
void fun() {
/// 设置桌面版 为 手机 或 ipad 尺寸
DesktopWindowsSize.iPhone6P1.set();
}
```