mirror of
https://github.com/hackku21/loc-chain-app.git
synced 2026-03-02 03:40:13 +00:00
working on
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user