google_meet_sdk 0.0.3 copy "google_meet_sdk: ^0.0.3" to clipboard
google_meet_sdk: ^0.0.3 copied to clipboard

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

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>
copied to clipboard
  1. Install it You can install packages from the command line: with Flutter:
$ flutter packages get
copied to clipboard

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';
copied to clipboard

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

In Android

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

In iOS

<key>clientId</key>
<string> 12234 </string>
copied to clipboard

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

copied to clipboard

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"),
        )

copied to clipboard

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)
            );

copied to clipboard

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)
            );

copied to clipboard

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

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

copied to clipboard

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.

27
likes
150
points
162
downloads

Publisher

unverified uploader

Weekly Downloads

2024.10.03 - 2025.04.17

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

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

firebase_auth, flutter, google_sign_in, googleapis, googleapis_auth, http, platform_metadata

More

Packages that depend on google_meet_sdk