搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.3

google_meet_sdk

一個 Flutter 套件,可幫助您在專案中新增 Google Meet,同時協助您建立、修改和刪除日曆事件,並通知參與者。

AndroidiOS
近 30 天下載
16
喜歡數
30
Pub 分數
140

安裝套件

flutter pub add google_meet_sdk

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

google_meet_sdk 是一個 Flutter 套件,可將 Google Meet 整合至行動應用程式中,實現無縫視訊會議。它支援建立、修改和刪除行事曆事件,並允許使用者直接從應用程式向參與者發送通知。專為 Android 和 iOS 設計,此套件簡化了嵌入即時通訊功能的過程,無需深入的原生開發知識。該套件利用 Google 的 API 安全管理會議與行事曆互動。

適用情境

  • 在遠端醫療應用中整合視訊通話
  • 啟用虛擬課堂
  • 支援遠端團隊協作
  • 將會議排程加入生產力工具

主要特色

  • 建立和管理 Google Meet 會議
  • 修改和刪除日曆事件
  • 發送參與者通知
  • 跨平台支援(Android 與 iOS)
  • 透過 pub 的簡單 Flutter 結合
  • 使用 Google OAuth 進行安全存取

適合對象

  • 教育類應用,提供即時課程
  • 提供諮詢的醫療保健平台
  • 遠端工作協作工具
  • 基於事件的排程應用程式

使用建議

  • 需要 Google API 設定和憑證
  • 依賴於透過Google的使用者驗證
  • 僅限 Google Meet 功能
  • 可能需要額外的權限才能存取日曆
  • 不適用於離線使用

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Pub

google_meet_sdk

A flutter package which will help you to add add google meet in your projects and also help you to create, modify and delete calender events and notify the attendee

Created by Techahead Software

Usage

Use this package as a library

  1. Depend on it Add this to your package's pubspec.yaml file:
dependencies:
  google_meet_sdk: <VERSION>
  1. Install it You can install packages from the command line: with Flutter:
$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

  1. Import it Now in your Dart code, you can use:
import 'package:google_meet_sdk/google_meet_sdk.dart';

add your clientId in android manifest and in iOS info.plist

In Android

<meta-data android:name="clientId" android:value="12234" />

In iOS

<key>clientId</key>
<string> 12234 </string>

Note:

1. enable google authentication from firebase
2. enable Google Calendar API from gcp console and select thesr scopes ( CalendarApi.calendarScope ,CalendarApi.calendarEventsScope  )
3. get your clientId (required) and serverClientId (optional) from gcp console

first login via google

ElevatedButton(
          key: UniqueKey(),
          onPressed: () {
            GoogleAuthentication.signInWithGoogle(context: context)
                .then((value) {
              if (value != null) {
                Navigator.push(
                    context,
                    MaterialPageRoute(
                      builder: (context) => const DashboardScreen(),
                    ));
              } else {
                debugPrint('something went wrong while login...');
              }
            });
          },
          child: const Text("click"),
        )

to insert/ add google meet and added event in your calender

           var result = await CalendarClient() .insert(title: currentTitle??"",
             description: currentDesc ?? '',
             location: currentLocation??"",
             attendeeEmailList: attendeeEmails,
             shouldNotifyAttendees: shouldNofityAttendees,
             hasConferenceSupport: hasConferenceSupport,
             startTime: DateTime.fromMillisecondsSinceEpoch(startTimeInEpoch),
             endTime: DateTime.fromMillisecondsSinceEpoch(endTimeInEpoch)
            );

to modify/update google meet and added event in your calender

           var result = await CalendarClient().modify(title: currentTitle??"",
             description: currentDesc ?? '',
             location: currentLocation??"",
             attendeeEmailList: attendeeEmails,
             shouldNotifyAttendees: shouldNofityAttendees,
             hasConferenceSupport: hasConferenceSupport,
             startTime: DateTime.fromMillisecondsSinceEpoch(startTimeInEpoch),
             endTime: DateTime.fromMillisecondsSinceEpoch(endTimeInEpoch)
            );

to delete/remove google meet and added event in your calender

           var result =  await CalendarClient().delete(eventId!, true)

for example refer to example/lib/main.dart

video

https://user-images.githubusercontent.com/37922543/219462854-b5249e9e-2896-425b-82c8-d0e8953c8d82.mp4

More information

Pub package Flutter documentation.

所屬分類

依賴

依賴清單 6 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。