패키지, 저장소 및 앱 카테고리 검색

GitHub 저장소Aman-Malhotra/SystemShortcutsFlutter

SystemShortcutsFlutter

시스템 단축키를 사용하기 위한 플러터 플러그인입니다.

SystemShortcutsFlutter 프로젝트 이미지
스타
19
포크
21
최근 푸시(UTC)
2024. 3. 5.
프로젝트 상태
활성

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

system_shortcuts

A flutter plugin to use system shortcuts.

Thanks to Rody Davis for IOS implementation.

For using funtions and getters related to WIFI settings you need to add these two permissions in your AndroidManifext.xml file
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>
For using funtions and getters related to BLUETOOTH settings you need to add these two permissions in your AndroidManifext.xml file
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
Make this import

import 'package:system_shortcuts/SystemShortcutsFlutter.dart';

Functions

Press home button using this function.

await SystemShortcuts.home();// perform a home button tap in android

Press back button using this function

await SystemShortcuts.back();// perform a back button tap in android

Press volume Down in using this function

await SystemShortcuts.volDown();// perform a volume down button click

Press volume Down in using this function

await SystemShortcuts.volUp();// perform a volume up button click

Toggle WIFI using this function

await SystemShortcuts.wifi();// toggle wifi in android

Toggle BLUETOOTH using this function

await SystemShortcuts.bluetooth();// toggle bluetooth in android

Getters

Get current WIFI state

await SystemShortcuts.checkWifi;// return true/false

Get current BLUETOOTH state

await SystemShortcuts.checkBluetooth;// return true/false

Usage

FlatButton(
  child: Text("Home"),
  onPressed: () async {
    await SystemShortcuts.home();
  },
),
FlatButton(
  child: Text("Check Wifi"),
  onPressed: () async {
    bool wifi = await SystemShortcuts.checkWifi;
  },
),
All Contibutors :

Rody Davis - IOS Implementation

Thorben Markmann - Plugin V2 embedding, Updation lib dependencies.

Aman Malhotra GitHub avatar
GitHub 작성자

Aman Malhotra ↗

Founding Engineer @ Naptick

@Naptick
언어DartJavaSwiftRubyKotlinHTMLObjective-C

사용 중인 의존성

의존성 목록 1 개

  • flutter{"sdk":"flutter"}

프로젝트에 맞는 저장소를 선택하려면?

사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.

  1. 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
  2. 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
  3. 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.

출처 및 관리

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗