Advertisement
rifki_cs29

forgotpassacess

Feb 23rd, 2022
990
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 3.45 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. import 'package:google_fonts/google_fonts.dart';
  3. import 'package:module_core/custom_widgets/custom_button/custom_button.dart';
  4. import 'package:module_core/custom_widgets/custom_textfield/custom_textfield.dart';
  5. import 'package:module_core/utils/app_image.dart';
  6.  
  7. class ForgotPasswordAccessPage extends StatelessWidget {
  8.   ForgotPasswordAccessPage({Key? key}) : super(key: key);
  9.   final TextEditingController _fieldController =
  10.       TextEditingController(text: '');
  11.  
  12.   @override
  13.   Widget build(BuildContext context) {
  14.     return Column(
  15.       mainAxisSize: MainAxisSize.min,
  16.       children: [
  17.         Stack(
  18.           alignment: Alignment.center,
  19.           children: [
  20.             Container(
  21.               height: 4,
  22.               width: 150,
  23.               decoration: BoxDecoration(
  24.                 color: Colors.grey[400],
  25.                 borderRadius: BorderRadius.circular(4),
  26.               ),
  27.             ),
  28.             Padding(
  29.               padding: const EdgeInsets.only(right: 8.0, top: 8),
  30.               child: Row(
  31.                 mainAxisAlignment: MainAxisAlignment.end,
  32.                 children: [
  33.                   GestureDetector(
  34.                     onTap: () {
  35.                       Navigator.pop(context);
  36.                     },
  37.                     child: Icon(
  38.                       Icons.close,
  39.                       color: Color(0xffAEAFB2),
  40.                       size: 24,
  41.                     ),
  42.                   ),
  43.                 ],
  44.               ),
  45.             ),
  46.           ],
  47.         ),
  48.         Container(
  49.           height: 200,
  50.           width: 200,
  51.           margin: EdgeInsets.only(top: 24),
  52.           decoration: BoxDecoration(
  53.             image: DecorationImage(
  54.               image: AssetImage(AppImage.forgot_password_access),
  55.               fit: BoxFit.contain,
  56.             ),
  57.           ),
  58.         ),
  59.         Padding(
  60.           padding: const EdgeInsets.symmetric(horizontal: 40, vertical: 30),
  61.           child: Text(
  62.               'Silahkan masukkan email yang terdaftar, Kami akan mengirimkan kode verifikasi untuk atur ulang kata sandi.',
  63.               textAlign: TextAlign.center,
  64.               style: GoogleFonts.roboto(
  65.                 fontSize: 12,
  66.                 color: Color(0xff2D2F2E),
  67.               )),
  68.         ),
  69.         Padding(
  70.           padding: const EdgeInsets.symmetric(horizontal: 30),
  71.           child: CustomTextField(
  72.             title: 'Email Anda',
  73.             hintText: 'Email Anda',
  74.             controller: _fieldController,
  75.             onChanged: (value) {
  76.               print(value);
  77.             },
  78.           ),
  79.         ),
  80.         Padding(
  81.           padding: const EdgeInsets.only(left: 42),
  82.           child: Row(
  83.             mainAxisAlignment: MainAxisAlignment.start,
  84.             children: [
  85.               Text('* pastikan email yang anda masukkan itu benar atau valid.',
  86.                   style: GoogleFonts.roboto(
  87.                       fontSize: 12,
  88.                       fontWeight: FontWeight.w400,
  89.                       color: Color(0xff505050))),
  90.             ],
  91.           ),
  92.         ),
  93.         Padding(
  94.             padding: const EdgeInsets.fromLTRB(30, 18, 30, 0),
  95.             child: CustomButton(
  96.                 title: 'Selanjutnya',
  97.                 color: Color(0xffF7B200),
  98.                 onPressed: () {
  99.                   print('Bisa');
  100.                 })),
  101.         SizedBox(height: 24)
  102.       ],
  103.     );
  104.   }
  105. }
  106.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement