Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
some minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
gamer-1478 committed Jun 21, 2021
1 parent e5a6b8e commit 8db109f
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions lib/screens/monument.dart
Original file line number Diff line number Diff line change
Expand Up @@ -102,47 +102,6 @@ class _MonumentContentState extends State<MonumentContent> {
});
}

/*Future<void> getAllowRead() async {
final prefs = await SharedPreferences.getInstance();
uid = prefs.getString('GLOBAL_USER_DATA');
await users
.doc(uid.toString())
.collection(widget.snumber.toString())
.doc(widget.snumber.toString())
.get()
.then((documentSnapshot) {
if (widget.snumber == 1) {
setState(() {
allowRead = true;
showNotAllowed = false;
});
} else if (documentSnapshot.exists) {
if (documentSnapshot.data()[widget.snumber.toString()] == true) {
setState(() {
allowRead = true;
showNotAllowed = false;
});
} else {
setState(() {
allowRead = false;
showNotAllowed = true;
});
}
} else {
setState(() {
allowRead = false;
showNotAllowed = true;
});
}
});
}*/

/*god this was hell, wasted like 3 hours, trying to update the name of the user, after welcome.
void _asyncMethodInnitState() async {
await getAllowRead();
}*/

@override
Widget build(BuildContext context) {
return FutureBuilder(
Expand Down

0 comments on commit 8db109f

Please sign in to comment.