FLUTTER ECOSYSTEM

flutter-moum/flutter_open_appstore

AppStore 또는 PlayStore 열기용 Flutter 플러그인

flutter_open_appstore 프로젝트 이미지
Stars
36
Forks
22
최근 푸시(UTC)
2021. 8. 13.
프로젝트 상태
활성
Flutter Moum GitHub avatar
GITHUB Organization

Flutter Moum ↗

언어DartRubyJavaSwiftObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

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

README 펼치기 / 접기

open_appstore

A Flutter plugin for opening the AppStore or PlayStore

Pub


Usage

Import the library via

import 'package:open_appstore/open_appstore.dart';

You can open the AppStore or PlayStore in your Dart code.
To open the App Store page, you can pass the app Id.

OpenAppstore.launch(androidAppId: "com.facebook.katana", iOSAppId: "284882215")
static void launch({String androidAppId, String iOSAppId}) async {
    await _channel.invokeMethod(
        'openappstore', {'android_id': androidAppId, 'ios_id': iOSAppId});
  }

iOS available

iOS is available from version 10.

if #available(iOS 10.0, *) {
                UIApplication.shared.open(url, options: [:], completionHandler: {(success: Bool) in
                    if success {
                        print("Launching \(url) was successful")
                    }})
            }

ScreenShots

https://user-images.githubusercontent.com/37133536/65833542-6ed3d580-e30c-11e9-8ccd-2fcb2e5d77b4.pnghttps://user-images.githubusercontent.com/37133536/65833543-6ed3d580-e30c-11e9-88a5-21c9c54c2bae.png

  • iOS can't show in simulator

Issues and feedback

Please file issues to send feedback or report a bug. Thank you!


License

MIT License