Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion project/lib/group/group_home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:flutter/services.dart';
import 'package:groupmeet/calendar/calendar.dart';
import 'package:groupmeet/theme.dart';
import 'package:groupmeet/qr/display_qr.dart';
import 'package:rich_clipboard/rich_clipboard.dart';

// change to commented out after groupHome is no longer accessible from main.dart (my group is not available in main.dart)
class GroupHomePage extends StatefulWidget {
Expand Down Expand Up @@ -366,7 +367,15 @@ class _GroupHomePageState extends State<GroupHomePage> {
style: const TextStyle(
color: Colors.white, fontSize: 20),
"${widget.myGroup!["gId"]}"),
],
PlatformIconButton(
color: Colors.lightBlue,
onPressed: () async {
await RichClipboard.setData(RichClipboardData(text: widget.myGroup!["gId"],));
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(content: Text("Group Code Successfully Copied!")));},
icon: const Icon(size: 15,
IconData(0xe190, fontFamily: 'MaterialIcons'),
),)
],
),
],
),
Expand Down
2 changes: 1 addition & 1 deletion project/lib/qr/display_qr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Display extends StatelessWidget{


@override
//I am here

Widget build(BuildContext context){
return SafeArea(child: PlatformScaffold(
appBar: PlatformAppBar(title: PlatformText(groupName)),
Expand Down
4 changes: 4 additions & 0 deletions project/linux/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

#include "generated_plugin_registrant.h"

#include <rich_clipboard_linux/rich_clipboard_plugin.h>

void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) rich_clipboard_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "RichClipboardPlugin");
rich_clipboard_plugin_register_with_registrar(rich_clipboard_linux_registrar);
}
1 change: 1 addition & 0 deletions project/linux/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#

list(APPEND FLUTTER_PLUGIN_LIST
rich_clipboard_linux
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
Expand Down
80 changes: 80 additions & 0 deletions project/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.1"
ffi:
dependency: transitive
description:
name: ffi
sha256: a38574032c5f1dd06c4aee541789906c12ccaab8ba01446e800d9c5b79c4a978
url: "https://pub.dev"
source: hosted
version: "2.0.1"
file:
dependency: transitive
description:
Expand Down Expand Up @@ -760,6 +768,70 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.2.1"
rich_clipboard:
dependency: "direct main"
description:
name: rich_clipboard
sha256: "48bfc84a0d3eeec5692b3afd0277aa658a7c95d1dbda72bb623188fba6a8e253"
url: "https://pub.dev"
source: hosted
version: "1.0.1"
rich_clipboard_android:
dependency: transitive
description:
name: rich_clipboard_android
sha256: "72725b248d5359a7ad6db2fea5aef921015ba9a00af275cbce3721a4fef20356"
url: "https://pub.dev"
source: hosted
version: "1.0.1"
rich_clipboard_ios:
dependency: transitive
description:
name: rich_clipboard_ios
sha256: "9d6bc037463b1b24cb14ae35ee9d7530bd6b2bdb15b30909fb47a1af01bf3233"
url: "https://pub.dev"
source: hosted
version: "1.0.0"
rich_clipboard_linux:
dependency: transitive
description:
name: rich_clipboard_linux
sha256: "0d0ab273afd60cb7314d01fdf3994fa01be2be79528f448241d9d70ea19b3db9"
url: "https://pub.dev"
source: hosted
version: "1.0.1"
rich_clipboard_macos:
dependency: transitive
description:
name: rich_clipboard_macos
sha256: "1aeb409e267576baaced347549e42dabc59895b10b2e09dabd9f753f469deb3e"
url: "https://pub.dev"
source: hosted
version: "1.0.1"
rich_clipboard_platform_interface:
dependency: transitive
description:
name: rich_clipboard_platform_interface
sha256: a1cbf255719cd4e340d33eca02b619d9ffb9cb571f1905e80b9345d4266e893d
url: "https://pub.dev"
source: hosted
version: "1.0.0"
rich_clipboard_web:
dependency: transitive
description:
name: rich_clipboard_web
sha256: c1dd2b75b8ce83fed0027828900bbfd5c33c0f8ff22efb266931db5aa7acffa0
url: "https://pub.dev"
source: hosted
version: "1.0.2"
rich_clipboard_windows:
dependency: transitive
description:
name: rich_clipboard_windows
sha256: fa2a28e75ce4bcc9efc6d5d0e9788b76716cdaf3b7063c141fe8af12a315f414
url: "https://pub.dev"
source: hosted
version: "1.0.2"
shelf:
dependency: transitive
description:
Expand Down Expand Up @@ -925,6 +997,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.4.0"
win32:
dependency: transitive
description:
name: win32
sha256: dd8f9344bc305ae2923e3d11a2a911d9a4e2c7dd6fe0ed10626d63211a69676e
url: "https://pub.dev"
source: hosted
version: "4.1.3"
yaml:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions project/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies:
firebase_auth: ^4.2.6
firebase_database: ^10.0.10
firebase_core_platform_interface: ^4.5.3
rich_clipboard: ^1.0.1
mockito: ^5.3.2
firebase_auth_mocks: ^0.11.0
firebase_database_mocks: ^0.6.0
Expand Down