mirror of
https://github.com/hackku21/loc-chain-app.git
synced 2024-10-27 20:34:05 +00:00
26 lines
696 B
Dart
26 lines
696 B
Dart
import 'package:flutter/material.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 {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
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) {
|
|
return MaterialApp(
|
|
title: 'Loc-Chain',
|
|
theme: ThemeData(
|
|
primarySwatch: Colors.lightBlue,
|
|
),
|
|
home: NavBarWidget(),
|
|
);
|
|
}
|
|
}
|