add signin function

This commit is contained in:
Sai Naw Wun
2020-08-30 21:26:37 +06:30
parent 76155a10e8
commit 10338bbfe9
176 changed files with 664 additions and 756 deletions

View File

@@ -8,7 +8,7 @@ import 'package:fcs/widget/local_text.dart';
import 'package:fcs/widget/localization/app_translations.dart';
import 'package:fcs/widget/progress.dart';
import '../theme/theme.dart' as Theme;
import '../fcs/common/theme.dart' as Theme;
import 'util.dart';
class ResetPasswordPage extends StatefulWidget {
@@ -319,7 +319,7 @@ class _ResetPasswordPageState extends State<ResetPasswordPage>
UserModel userModel = Provider.of<UserModel>(context);
try {
await userModel.resetPassword(widget.phoneNumber, password, smsCode);
Navigator.pushNamedAndRemoveUntil(context, "/login", (r) => false);
Navigator.pushNamedAndRemoveUntil(context, "/login", (r) => false);
} catch (e) {
showMsgDialog(context, "Error", e.toString());
} finally {