Skip to content

Commit

Permalink
removed listener
Browse files Browse the repository at this point in the history
  • Loading branch information
git-elliot committed Nov 17, 2024
1 parent a09f752 commit c3d33f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
8 changes: 4 additions & 4 deletions lib/models/wifi_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ class WifiInfo {
static const String noWifiName = 'Wi-Fi';

String get name {
if (_name == null || _name!.isEmpty) return noWifiName;
if (_name!.startsWith('"') && _name!.endsWith('"')) {
final array = _name!.split('"');
if (_name == null || _name.isEmpty) return noWifiName;
if (_name.startsWith('"') && _name.endsWith('"')) {
final array = _name.split('"');
if (array.length > 1) {
final wifiName = array[1];
return wifiName.isEmpty ? noWifiName : wifiName;
}
}
return _name!;
return _name;
}

String get bssid => _bssid ?? defaultBSSID.first;
Expand Down
11 changes: 0 additions & 11 deletions lib/repository/notification_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,6 @@ class NotificationService {
requestAlertPermission: false,
requestBadgePermission: false,
requestSoundPermission: false,
onDidReceiveLocalNotification:
(int id, String? title, String? body, String? payload) async {
didReceiveLocalNotificationStream.add(
ReceivedNotification(
id: id,
title: title,
body: body,
payload: payload,
),
);
},
notificationCategories: darwinNotificationCategories,
);
final LinuxInitializationSettings initializationSettingsLinux =
Expand Down

0 comments on commit c3d33f7

Please sign in to comment.