2025-08-29 16:16:01 +07:00
|
|
|
import 'package:auto_route/auto_route.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
import '../../../components/button/button.dart';
|
|
|
|
|
import '../../../components/field/field.dart';
|
|
|
|
|
import '../../../router/app_router.gr.dart';
|
|
|
|
|
|
|
|
|
|
@RoutePage()
|
|
|
|
|
class PasswordPage extends StatelessWidget {
|
2025-09-18 08:01:49 +07:00
|
|
|
final String phoneNumber;
|
|
|
|
|
const PasswordPage({super.key, required this.phoneNumber});
|
2025-08-29 16:16:01 +07:00
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Scaffold(
|
2025-09-18 08:01:49 +07:00
|
|
|
appBar: AppBar(title: const Text('Kata Sandi')),
|
2025-08-29 16:16:01 +07:00
|
|
|
body: Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 24.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
const SizedBox(height: 40),
|
|
|
|
|
|
|
|
|
|
// Title
|
|
|
|
|
AppPasswordTextFormField(
|
|
|
|
|
title: 'Masukkan kata sandi',
|
|
|
|
|
hintText: '********',
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
const SizedBox(height: 50),
|
|
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
|
|
// Continue Button
|
|
|
|
|
AppElevatedButton(
|
|
|
|
|
onPressed: () => context.router.push(const MainRoute()),
|
|
|
|
|
title: 'Konfirmasi',
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
const SizedBox(height: 24),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|