♻️ Refactored auth system

This commit is contained in:
2024-07-25 01:18:47 +08:00
parent ef58430060
commit 6d92a16a62
38 changed files with 444 additions and 523 deletions

View File

@ -69,7 +69,7 @@ class _PostPublishScreenState extends State<PostPublishScreen> {
void applyPost() async {
final AuthProvider auth = Get.find();
if (!await auth.isAuthorized) return;
if (auth.isAuthorized.isFalse) return;
if (_contentController.value.text.isEmpty) return;
setState(() => _isBusy = true);