loc-chain-app/loc_chain_app/lib/main.dart
2021-04-10 21:52:37 -05:00

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(),
);
}
}