-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Highlighted special devices, added logo and removed unicodes from port description #12
Conversation
@guyluz11 Fixed some of the issues, I'm still working on rest of them. |
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.
Nice work, we are on the right track
lib/pages/host_scan_page.dart
Outdated
double _progress = 0; | ||
bool _isScanning = false; | ||
StreamSubscription<ActiveHost>? _streamSubscription; | ||
late String? ip; |
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.
Not clear about some parts in this page, like why is this not local variable.
Will check it out later as I am on the phone
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.
It should be private but not local, since I'm saving the result of NetworkInfo calls for latter use when giving name and icon to the device.
lib/pages/host_scan_page.dart
Outdated
ip = await NetworkInfo().getWifiIP(); | ||
gatewayIp = await NetworkInfo().getWifiGatewayIP(); | ||
|
||
debugPrint('wifi ip : $ip'); |
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.
Don't forget to remove in the end
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.
One last change and we are good to go
lib/pages/host_scan_page.dart
Outdated
(ActiveHost device) { | ||
debugPrint('Found device: ${device.ip}'); | ||
(ActiveHost host) { | ||
debugPrint('Found host: ${host.ip}'); |
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.
Debug does not need to be included in the production, please remove it.
This is a fix for