diff --git a/chem_solution_mobile/lib/main.dart b/chem_solution_mobile/lib/main.dart index 93504ad..b1a1db4 100644 --- a/chem_solution_mobile/lib/main.dart +++ b/chem_solution_mobile/lib/main.dart @@ -15,6 +15,7 @@ bool autorised; //final String chemURL = '192.168.0.104:5001'; //final String chemURL = '192.168.1.8:5001'; final String chemURL = 'chemsolutionapi.azurewebsites.net'; +final String chemWeb = 'https://chemsolution.onrender.com'; final storage = FlutterSecureStorage(); User currentUser; List allPosts = []; diff --git a/chem_solution_mobile/lib/profile/my_profile.dart b/chem_solution_mobile/lib/profile/my_profile.dart index 5d8b5df..7703fc1 100644 --- a/chem_solution_mobile/lib/profile/my_profile.dart +++ b/chem_solution_mobile/lib/profile/my_profile.dart @@ -101,27 +101,7 @@ class _MyProfileState extends State { ], ), ), - bottomNavigationBar: BottomAppBar( - color: themeDark, - child: Padding( - padding: EdgeInsets.symmetric(vertical: 5, horizontal: 15), - child: Row( - mainAxisAlignment: MainAxisAlignment.end, - children: [ - TextButton( - onPressed: () { - toBrowser( - context, 'https://www.google.com', 'Редагування даних'); - }, - child: Text( - 'Редагувати', - style: TextStyle(color: themeGreen, fontSize: 20), - ), - ), - ], - ), - ), - ), + ), ); } diff --git a/chem_solution_mobile/lib/widgets/auth_widget.dart b/chem_solution_mobile/lib/widgets/auth_widget.dart index 80b9987..0ac80de 100644 --- a/chem_solution_mobile/lib/widgets/auth_widget.dart +++ b/chem_solution_mobile/lib/widgets/auth_widget.dart @@ -161,7 +161,7 @@ class _AuthWidgetState extends State { width: MediaQuery.of(context).size.width * 0.8, ), child: ElevatedButton( - onPressed: () => authBloc.loginGoogle(), + onPressed: () => authBloc.loginGoogle(), child: Center( child: Row( mainAxisAlignment: MainAxisAlignment.center, @@ -232,7 +232,7 @@ class _AuthWidgetState extends State { TextButton( onPressed: () { toBrowser( - context, 'https://www.google.com', 'Відновлення паролю'); + context, '$chemWeb/mobileReset', 'Відновлення паролю'); }, child: Text( 'Забули пароль?', @@ -241,7 +241,7 @@ class _AuthWidgetState extends State { ), TextButton( onPressed: () { - toBrowser(context, 'https://www.google.com', 'Реєстрація'); + toBrowser(context, '$chemWeb/mobileRegister', 'Реєстрація'); }, child: Text( 'Створити акаунт',