import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; class GantiPasswordPage extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Ganti Password'), centerTitle: true, foregroundColor: Colors.black, backgroundColor: Colors.white, elevation: 0.5, ), body: ListView( children: [ Container( padding: EdgeInsets.only(top: 40, left: 16, right: 16, bottom: 40), child: Column( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ // Password Lama Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( 'Password Lama', style: GoogleFonts.montserrat() .copyWith(fontSize: 16, fontWeight: FontWeight.bold), ), SizedBox( height: 6, ), TextFormField( decoration: const InputDecoration( border: OutlineInputBorder(), enabledBorder: OutlineInputBorder( borderSide: BorderSide( color: Colors.black, width: 1.5, ), ), focusedBorder: OutlineInputBorder( borderSide: BorderSide( color: Colors.blueAccent, width: 3.0, ), ), ), style: TextStyle(color: Colors.white38), autofocus: false, ), ], ), // Password Baru Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( 'Password Baru', style: GoogleFonts.montserrat() .copyWith(fontSize: 16, fontWeight: FontWeight.bold), ), SizedBox( height: 6, ), TextFormField( decoration: const InputDecoration( border: OutlineInputBorder(), enabledBorder: OutlineInputBorder( borderSide: BorderSide( color: Colors.black, width: 1.5, ), ), focusedBorder: OutlineInputBorder( borderSide: BorderSide( color: Colors.blueAccent, width: 3.0, ), ), ), style: TextStyle(color: Colors.white38), autofocus: false, ), ], ), // Konfirmasi Password Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( 'Konfirmasi Password Baru', style: GoogleFonts.montserrat() .copyWith(fontSize: 16, fontWeight: FontWeight.bold), ), SizedBox( height: 6, ), TextFormField( decoration: const InputDecoration( border: OutlineInputBorder(), enabledBorder: OutlineInputBorder( borderSide: BorderSide( color: Colors.black, width: 1.5, ), ), focusedBorder: OutlineInputBorder( borderSide: BorderSide( color: Colors.blueAccent, width: 3.0, ), ), ), style: TextStyle(color: Colors.white38), autofocus: false, ), ], ), // Lupa Kata sandi Row( children: [ Spacer(), TextButton( onPressed: () { // Navigator.push( // context, // MaterialPageRoute( // builder: (context) => RegisterPage(), // ), // ); }, child: Text( 'Lupa Kata Sandi ?', style: GoogleFonts.montserrat().copyWith( color: Colors.blue, fontWeight: FontWeight.bold, ), ), ), ], ), SizedBox( height: 250, ), // Button SizedBox( height: 48, width: 328, child: TextButton( style: TextButton.styleFrom( backgroundColor: Colors.amber, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(20), ), ), onPressed: () { // Navigator.push( // context, // MaterialPageRoute( // builder: (context) => HomePage(), // ), // ); }, child: Text( 'Masuk', style: GoogleFonts.montserrat().copyWith( color: Colors.white, fontWeight: FontWeight.bold, ), ), ), ), ], ), ), ], ), ); } }