89abb3bf03
* 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
18 lines
476 B
Dart
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(),
|
|
),
|
|
);
|
|
}
|