mirror of
https://github.com/hackku21/loc-chain-app.git
synced 2024-10-27 20:34:05 +00:00
working on
This commit is contained in:
parent
626edf0a76
commit
d41d026448
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user