135 lines
4.3 KiB
Dart
135 lines
4.3 KiB
Dart
import 'package:easycook_mobile/theme.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
|
|
class ResetPassword extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: Container(
|
|
padding: EdgeInsets.only(top: 96, left: 16, right: 16, bottom: 63),
|
|
child: ListView(
|
|
children: [
|
|
// Title
|
|
Column(
|
|
children: [
|
|
Text(
|
|
'Kata Sandi Baru',
|
|
style: GoogleFonts.montserrat().copyWith(
|
|
color: Colors.black,
|
|
fontWeight: FontWeight.bold,
|
|
fontSize: 32,
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 32,
|
|
),
|
|
// Gambar
|
|
Container(
|
|
child: SizedBox(
|
|
width: 189,
|
|
height: 190,
|
|
child: Image.asset('images/sandi_baru.png'),
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 32,
|
|
),
|
|
// Text Field
|
|
Row(
|
|
children: [
|
|
Text(
|
|
'Kata Sandi Baru',
|
|
style: GoogleFonts.montserrat().copyWith(
|
|
color: Colors.black,
|
|
fontSize: 16,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
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.black),
|
|
autofocus: false,
|
|
),
|
|
SizedBox(
|
|
height: 16,
|
|
),
|
|
Row(
|
|
children: [
|
|
Text(
|
|
'Konfirmasi Kata Sandi Baru',
|
|
style: GoogleFonts.montserrat().copyWith(
|
|
color: Colors.black,
|
|
fontSize: 16,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
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.black),
|
|
autofocus: false,
|
|
),
|
|
SizedBox(
|
|
height: 40,
|
|
),
|
|
// Button
|
|
SizedBox(
|
|
height: 48,
|
|
width: 328,
|
|
child: TextButton(
|
|
style: TextButton.styleFrom(
|
|
backgroundColor: Colors.orange,
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(20),
|
|
),
|
|
),
|
|
onPressed: () {},
|
|
child: Text(
|
|
'Simpan',
|
|
style: GoogleFonts.montserrat().copyWith(
|
|
color: Colors.white, fontWeight: FontWeight.bold),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|