working on

This commit is contained in:
Thomas Atkins 2021-04-10 14:06:54 -05:00
parent 626edf0a76
commit d41d026448
3 changed files with 6 additions and 7 deletions

View File

@ -4,13 +4,12 @@ import 'package:loc_chain_app/widgets/navbar.dart';
import 'dart:math';
void main() async {
runApp(App());
final prefs = await SharedPreferences.getInstance();
final id = prefs.getString('id') ?? '0';
if (id == '0') {
prefs.setString('id', Random().nextInt(10000).toString());
}
runApp(App());
}
class App extends StatelessWidget {

View File

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:nearby_connections/nearby_connections.dart';
class SettingsPage extends StatefulWidget {
SettingsPage({Key key, this.title}) : super(key: key);
SettingsPage({Key? key, required this.title}) : super(key: key);
final String title;
@override

View File

@ -191,13 +191,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "4.2.1"
rsa_encrypt:
dependency: "direct main"
protobuf:
dependency: transitive
description:
name: plugin_platform_interface
name: protobuf
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "2.0.0"
shared_preferences:
dependency: "direct main"
description: