FLUTTER ECOSYSTEM

shivbo96/google_meet_sdk

프로젝트에 Google Meet를 추가하고 캘린더 이벤트를 만들고 수정하며 삭제하는 데 도움을 주며 참석자에게 알림을 보내는 플러터 패키지입니다.

google_meet_sdk 프로젝트 이미지
Stars
1
Forks
2
최근 푸시(UTC)
2025. 4. 3.
프로젝트 상태
활성
Shivam Mishra GitHub avatar
GITHUB User

Shivam Mishra ↗

Senior Flutter Engineer • Open Source Maintainer • Building Routix (Smart Deep Linking Platform) • Backend & AI Learner

Noida, India
언어DartHTMLRubySwiftKotlinObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 9 개

원본 README

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

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.