feat: integrate enakgame and voucher
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s
This commit is contained in:
@@ -16,7 +16,12 @@ import 'widgets/phone_field.dart';
|
||||
|
||||
@RoutePage()
|
||||
class LoginPage extends StatelessWidget implements AutoRouteWrapper {
|
||||
const LoginPage({super.key});
|
||||
const LoginPage({super.key, this.returnAfterLogin = false});
|
||||
|
||||
/// Login ulang dari tengah alur (mis. token kedaluwarsa saat main
|
||||
/// EnakGame): setelah berhasil, halaman login di-pop dengan hasil `true`
|
||||
/// alih-alih membuka beranda.
|
||||
final bool returnAfterLogin;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -40,6 +45,7 @@ class LoginPage extends StatelessWidget implements AutoRouteWrapper {
|
||||
context.router.push(
|
||||
PasswordRoute(
|
||||
phoneNumber: getNormalizePhone(state.phoneNumber),
|
||||
returnAfterLogin: returnAfterLogin,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user