Files
universal_ble/example/lib/main.dart
T
Rohit Sangwan 89abb3bf03 Implement Logging (#199)
* Implement Logging

* Add timestamp in OnValueChanged

* improve web and linux logging

* Implement windows and format pigeon

* Fix windows build and unity log level

* Log commands with timestamp

* Fix code doc

* Remove unnecessary import

* Update docs

* Fix crash on windows 11 because of failed pairing

* Update changelog

* Fix native code formatting
2025-12-12 18:56:43 +05:30

18 lines
476 B
Dart

import 'package:flutter/material.dart';
import 'package:universal_ble/universal_ble.dart';
import 'package:universal_ble_example/home/home.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await UniversalBle.setLogLevel(BleLogLevel.verbose);
runApp(
MaterialApp(
title: 'Universal BLE',
debugShowCheckedModeBanner: false,
darkTheme: ThemeData.dark(),
themeMode: ThemeMode.system,
home: const MyApp(),
),
);
}