Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- import 'package:google_fonts/google_fonts.dart';
- import 'package:module_core/custom_widgets/custom_button/custom_button.dart';
- import 'package:module_core/custom_widgets/custom_textfield/custom_textfield.dart';
- import 'package:module_core/utils/app_image.dart';
- class ForgotPasswordAccessPage extends StatelessWidget {
- ForgotPasswordAccessPage({Key? key}) : super(key: key);
- final TextEditingController _fieldController =
- TextEditingController(text: '');
- @override
- Widget build(BuildContext context) {
- return Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- Stack(
- alignment: Alignment.center,
- children: [
- Container(
- height: 4,
- width: 150,
- decoration: BoxDecoration(
- color: Colors.grey[400],
- borderRadius: BorderRadius.circular(4),
- ),
- ),
- Padding(
- padding: const EdgeInsets.only(right: 8.0, top: 8),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.end,
- children: [
- GestureDetector(
- onTap: () {
- Navigator.pop(context);
- },
- child: Icon(
- Icons.close,
- color: Color(0xffAEAFB2),
- size: 24,
- ),
- ),
- ],
- ),
- ),
- ],
- ),
- Container(
- height: 200,
- width: 200,
- margin: EdgeInsets.only(top: 24),
- decoration: BoxDecoration(
- image: DecorationImage(
- image: AssetImage(AppImage.forgot_password_access),
- fit: BoxFit.contain,
- ),
- ),
- ),
- Padding(
- padding: const EdgeInsets.symmetric(horizontal: 40, vertical: 30),
- child: Text(
- 'Silahkan masukkan email yang terdaftar, Kami akan mengirimkan kode verifikasi untuk atur ulang kata sandi.',
- textAlign: TextAlign.center,
- style: GoogleFonts.roboto(
- fontSize: 12,
- color: Color(0xff2D2F2E),
- )),
- ),
- Padding(
- padding: const EdgeInsets.symmetric(horizontal: 30),
- child: CustomTextField(
- title: 'Email Anda',
- hintText: 'Email Anda',
- controller: _fieldController,
- onChanged: (value) {
- print(value);
- },
- ),
- ),
- Padding(
- padding: const EdgeInsets.only(left: 42),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- children: [
- Text('* pastikan email yang anda masukkan itu benar atau valid.',
- style: GoogleFonts.roboto(
- fontSize: 12,
- fontWeight: FontWeight.w400,
- color: Color(0xff505050))),
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.fromLTRB(30, 18, 30, 0),
- child: CustomButton(
- title: 'Selanjutnya',
- color: Color(0xffF7B200),
- onPressed: () {
- print('Bisa');
- })),
- SizedBox(height: 24)
- ],
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement