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';
|
import 'dart:math';
|
||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
|
runApp(App());
|
||||||
final prefs = await SharedPreferences.getInstance();
|
final prefs = await SharedPreferences.getInstance();
|
||||||
final id = prefs.getString('id') ?? '0';
|
final id = prefs.getString('id') ?? '0';
|
||||||
if (id == '0') {
|
if (id == '0') {
|
||||||
prefs.setString('id', Random().nextInt(10000).toString());
|
prefs.setString('id', Random().nextInt(10000).toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
runApp(App());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class App extends StatelessWidget {
|
class App extends StatelessWidget {
|
||||||
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:nearby_connections/nearby_connections.dart';
|
import 'package:nearby_connections/nearby_connections.dart';
|
||||||
|
|
||||||
class SettingsPage extends StatefulWidget {
|
class SettingsPage extends StatefulWidget {
|
||||||
SettingsPage({Key key, this.title}) : super(key: key);
|
SettingsPage({Key? key, required this.title}) : super(key: key);
|
||||||
final String title;
|
final String title;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -191,13 +191,13 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.2.1"
|
version: "4.2.1"
|
||||||
rsa_encrypt:
|
protobuf:
|
||||||
dependency: "direct main"
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: plugin_platform_interface
|
name: protobuf
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.5"
|
version: "2.0.0"
|
||||||
shared_preferences:
|
shared_preferences:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
Loading…
Reference in New Issue
Block a user