Skip to content
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

How to get MAC address for windows #129

Open
oniangel12933 opened this issue Sep 26, 2023 · 1 comment
Open

How to get MAC address for windows #129

oniangel12933 opened this issue Sep 26, 2023 · 1 comment
Assignees
Labels
discussion This issue is used for discussing a topic.

Comments

@oniangel12933
Copy link

No description provided.

@oniangel12933 oniangel12933 added the discussion This issue is used for discussing a topic. label Sep 26, 2023
@MuhammadShoaib495
Copy link

  1. Add Dependency: Add the network_info_plus package to your pubspec.yaml

dependencies: flutter: sdk: flutter network_info_plus: ^5.0.0 # Check for the latest version

  1. Import the Package: Import the package in your Dart file

import 'package:network_info_plus/network_info_plus.dart';

  1. Get MAC Address: Use the NetworkInfo class to fetch the MAC address. Here's an example:

void getMacAddress() async { final NetworkInfo networkInfo = NetworkInfo(); String? wifiBSSID = await networkInfo.getWifiBSSID(); // This gives the MAC address print('MAC Address: $wifiBSSID'); }

It will be print Mac Address!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion This issue is used for discussing a topic.
Projects
None yet
Development

No branches or pull requests

3 participants