flutter_bluetooth

所属分类:通讯编程
开发工具:Others
文件大小:617KB
下载次数:46
上传日期:2019-06-06 09:55:26
上 传 者youngda
说明:  flutter 蓝牙,通过蓝牙协议和单片机进行数据交互,控制智能硬件
(Flutter bluetooth, through Bluetooth protocol and single-chip computer for data interaction, control of intelligent hardware)

文件列表:
.metadata (305, 2019-05-13)
_config.yml (26, 2019-05-13)
android (0, 2019-05-13)
android\app (0, 2019-05-13)
android\app\build.gradle (2025, 2019-05-13)
android\app\src (0, 2019-05-13)
android\app\src\debug (0, 2019-05-13)
android\app\src\debug\AndroidManifest.xml (480, 2019-05-13)
android\app\src\main (0, 2019-05-13)
android\app\src\main\AndroidManifest.xml (1998, 2019-05-13)
android\app\src\main\java (0, 2019-05-13)
android\app\src\main\java\com (0, 2019-05-13)
android\app\src\main\java\com\example (0, 2019-05-13)
android\app\src\main\java\com\example\flutter_bluetooth (0, 2019-05-13)
android\app\src\main\java\com\example\flutter_bluetooth\MainActivity.java (374, 2019-05-13)
android\app\src\main\res (0, 2019-05-13)
android\app\src\main\res\drawable (0, 2019-05-13)
android\app\src\main\res\drawable\launch_background.xml (434, 2019-05-13)
android\app\src\main\res\mipmap-hdpi (0, 2019-05-13)
android\app\src\main\res\mipmap-hdpi\ic_launcher.png (544, 2019-05-13)
android\app\src\main\res\mipmap-mdpi (0, 2019-05-13)
android\app\src\main\res\mipmap-mdpi\ic_launcher.png (442, 2019-05-13)
android\app\src\main\res\mipmap-xhdpi (0, 2019-05-13)
android\app\src\main\res\mipmap-xhdpi\ic_launcher.png (721, 2019-05-13)
android\app\src\main\res\mipmap-xxhdpi (0, 2019-05-13)
android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png (1031, 2019-05-13)
android\app\src\main\res\mipmap-xxxhdpi (0, 2019-05-13)
android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png (1443, 2019-05-13)
android\app\src\main\res\values (0, 2019-05-13)
android\app\src\main\res\values\styles.xml (361, 2019-05-13)
android\app\src\profile (0, 2019-05-13)
android\app\src\profile\AndroidManifest.xml (480, 2019-05-13)
android\build.gradle (470, 2019-05-13)
android\gradle.properties (82, 2019-05-13)
android\gradle (0, 2019-05-13)
android\gradle\wrapper (0, 2019-05-13)
android\gradle\wrapper\gradle-wrapper.properties (234, 2019-05-13)
... ...

# flutter_bluetooth This flutter app will help you to connect to Bluetooth Devices (like, HC-05). You can send messages to the bluetooth module and perform various operations. By default, the app has only on and off functionality for any paired bluetooth devices, but you can add as many functionality as you want. This flutter plugin is very new and contains a few bugs (like, while starting the app for first time it will show a dialog box, written, "Allow flutter_bluetooth to access this device's location?" instead of showing "Allow Bluetooth access", but it will perform the operation of getting bluetooth access. So, don't get afraid). This plugin is made by implementing the "flutter_blue" plugin.

Add this dependency in pubspec.yaml: ```yaml dependencies: flutter_bluetooth_serial: ^0.0.5 ``` ## How to run the app You should have flutter installed and up running properly to use this application. To check if there is any problem, use the command: ```bash flutter doctor ``` Now, navigate to the project folder and run this command: ```bash flutter run ``` If you get any error like this :

Then navigate to your project folder (like, flutter_bluetooth) after opening the project folder follow these steps: android -> app -> src -> main -> AndroidManifest.xml Now, add these two lines of code : ```xml xmlns:tools="http://schemas.android.com/tools"> ... ``` ## Screenshots

## Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this is your first Flutter project: - [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab) - [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook) For help getting started with Flutter, view our [online documentation](https://flutter.io/docs), which offers tutorials, samples, guidance on mobile development, and a full API reference.

近期下载者

相关文件


收藏者