-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev -> Main #213
base: main
Are you sure you want to change the base?
Dev -> Main #213
Conversation
Archive full windows and macos builds
…rnet into archive-full-windows
Fix for windows and beta lane
updated readme
Removed listener and fixed analyzer warnings
Shorten workflow file and expressions
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #213 +/- ##
==========================================
- Coverage 35.76% 35.70% -0.07%
==========================================
Files 47 47
Lines 1535 1549 +14
==========================================
+ Hits 549 553 +4
- Misses 986 996 +10 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class _WifiDetailState extends State {
Future fetchWifiDetails() async {
final wifiIP = await NetworkInfo().getWifiIP();
final wifiBSSID = await NetworkInfo().getWifiBSSID();
final wifiName = await NetworkInfo().getWifiName();
String? wifiGatewayIP;
try {
wifiGatewayIP = await NetworkInfo().getWifiGatewayIP();
} on Exception catch (e) {
debugPrint('Error fetching Wi-Fi gateway IP: $e');
}
final gatewayIp = appSettings.customSubnet.isNotEmpty
? appSettings.customSubnet
: (wifiGatewayIP ?? wifiIP) ?? '';
final bool isLocationOn = (Platform.isAndroid || Platform.isIOS) &&
await Permission.location.serviceStatus.isEnabled;
_wifiInfo = WifiInfo(
ip: wifiIP,
bssid: wifiBSSID,
ssid: wifiName,
gateway: gatewayIp,
isLocationEnabled: isLocationOn,
);
debugPrint("Wi-Fi Details: $_wifiInfo");
}
}
Your code seems to have an issue on line 50. Based on what you've shared, here's a quick analysis and possible fixes.Syntax Issue: In your conditional assignment to gatewayIp, there is a redundant colon (:) that could be causing a syntax error |
No description provided.