Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/github_actions/actions/setup-ja…
Browse files Browse the repository at this point in the history
…va-3.13.0
  • Loading branch information
juliansteenbakker authored Oct 9, 2023
2 parents 29acfe9 + db370c5 commit 6e89e8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flutter_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
distribution: 'temurin' # See 'Supported distributions' for available options
Expand Down
5 changes: 3 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class _MyAppState extends State<MyApp> {
scanSubscription?.cancel();
setState(() {
scanResults.clear();
// ignore: deprecated_member_use
scanSubscription = FlutterBluePlus.scan(allowDuplicates: true).listen(
(scanResult) {
if (scanResults.firstWhereOrNull(
Expand Down Expand Up @@ -195,8 +196,8 @@ class DeviceItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
var name = 'Unknown';
if (scanResult.device.localName.isNotEmpty) {
name = scanResult.device.localName;
if (scanResult.device.platformName.isNotEmpty) {
name = scanResult.device.platformName;
}
return Card(
child: Padding(
Expand Down

0 comments on commit 6e89e8b

Please sign in to comment.