Add macOS support (#23)

* Add macOS support

* Update README

* Update to v0.2.0

* Document breaking changes

* Delete widget tests
This commit is contained in:
Ben Hagen
2025-05-13 16:24:58 +02:00
committed by GitHub
parent c391cc5f26
commit abe519dae7
103 changed files with 3444 additions and 169 deletions
+3 -3
View File
@@ -5,13 +5,13 @@ class PeerWidget extends StatelessWidget {
const PeerWidget({
super.key,
required this.device,
required this.isIosBrowser,
required this.isDarwinBrowser,
required this.onConnect,
required this.communicationChannelState,
});
final NearbyDevice device;
final bool isIosBrowser;
final bool isDarwinBrowser;
final ValueChanged<NearbyDevice> onConnect;
final CommunicationChannelState communicationChannelState;
@@ -28,7 +28,7 @@ class PeerWidget extends StatelessWidget {
return ListTile(
title: Text(
'${isIosBrowser ? 'Found device' : 'Pending invitation'} | ${device.info.displayName} | $status',
'${isDarwinBrowser ? 'Found device' : 'Pending invitation'} | ${device.info.displayName} | $status',
),
onTap: canTap ? () => onConnect(device) : null,
tileColor: Colors.blueAccent,