From db82c979fc0f1c564736c60d3f4687f2a6b6a0af Mon Sep 17 00:00:00 2001 From: emmanueltech Date: Sun, 25 Feb 2024 20:23:31 +0500 Subject: [PATCH] new fixes --- lib/routes/settings.dart | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/routes/settings.dart b/lib/routes/settings.dart index bf0a08a..abbdc30 100644 --- a/lib/routes/settings.dart +++ b/lib/routes/settings.dart @@ -26,14 +26,11 @@ class _SettingsPageState extends State { var _successMessage = ''; var denomination; var symbol; - var urlController = TextEditingController(); - GlobalKey _formKey = GlobalKey(); bool? isUserLoggedIn; @override void initState() { _rebuild(); super.initState(); - setBackendUrl(); isUserLoggedIn = Authentication.currentAccount.email != null; if (isUserLoggedIn == true) { Authentication.getAccount().then((account) { @@ -42,10 +39,6 @@ class _SettingsPageState extends State { } } - void setBackendUrl() { - urlController.text = Client.apiUri.toString(); - } - @override Widget build(BuildContext context) { return Scaffold( @@ -63,7 +56,7 @@ class _SettingsPageState extends State { crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: [ - _EditUrlLink(), + _EditUrlLink(context), if (isUserLoggedIn == true) _SelectCurrencyLink(context), if (isUserLoggedIn == true) _BusinessInfoLink(context), if (isUserLoggedIn == true) _AddressesLink(context), @@ -81,7 +74,7 @@ class _SettingsPageState extends State { ); } - Widget _EditUrlLink() { + Widget _EditUrlLink(context) { return Container( margin: EdgeInsets.all(10.0), child: GestureDetector(