mirror of
https://github.com/hackku21/loc-chain-app.git
synced 2024-10-27 20:34:05 +00:00
29 lines
748 B
Dart
29 lines
748 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:loc_chain_app/util/bluetooth.dart';
|
|
import 'package:shared_preferences/shared_preferences.dart';
|
|
import 'package:loc_chain_app/widgets/navbar.dart';
|
|
import 'package:flutter_udid/flutter_udid.dart';
|
|
|
|
void main() async {
|
|
runApp(App());
|
|
(await SharedPreferences.getInstance())
|
|
.setString('userName', await FlutterUdid.consistentUdid);
|
|
}
|
|
|
|
class App extends StatelessWidget {
|
|
// This widget is the root of your application.
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
Connect.stop();
|
|
Connect.start();
|
|
|
|
return MaterialApp(
|
|
title: 'Flutter Demo',
|
|
theme: ThemeData(
|
|
primarySwatch: Colors.lightBlue,
|
|
),
|
|
home: NavBarWidget(),
|
|
);
|
|
}
|
|
}
|