Fakultas Ilmu Komputer UI

Commit 596f0078 authored by Manuel Yoseph Ray's avatar Manuel Yoseph Ray
Browse files

[REFACTOR] menghapus file selain transaksi riwayat

parent 76c480d2
Pipeline #81950 passed with stages
in 5 minutes and 26 seconds
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_keyboard_visibility","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":[]},{"name":"path_provider","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-2.0.1\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-2.0.0\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.0.0\\\\","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.0.0\\\\","dependencies":[]}],"web":[{"name":"flutter_keyboard_visibility_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility_web-2.0.0\\\\","dependencies":[]},{"name":"image_picker_for_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker_for_web-2.0.0\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_keyboard_visibility","dependencies":["flutter_keyboard_visibility_web"]},{"name":"flutter_keyboard_visibility_web","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_secure_storage","dependencies":[]},{"name":"image_picker","dependencies":["flutter_plugin_android_lifecycle","image_picker_for_web"]},{"name":"image_picker_for_web","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2021-06-07 05:38:11.219115","version":"2.0.1"}
\ No newline at end of file
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_keyboard_visibility","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":[]},{"name":"path_provider","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-2.0.1\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-2.0.0\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.0.0\\\\","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.0.0\\\\","dependencies":[]}],"web":[{"name":"flutter_keyboard_visibility_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility_web-2.0.0\\\\","dependencies":[]},{"name":"image_picker_for_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker_for_web-2.0.0\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_keyboard_visibility","dependencies":["flutter_keyboard_visibility_web"]},{"name":"flutter_keyboard_visibility_web","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_secure_storage","dependencies":[]},{"name":"image_picker","dependencies":["flutter_plugin_android_lifecycle","image_picker_for_web"]},{"name":"image_picker_for_web","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2021-06-07 06:03:17.015899","version":"2.0.1"}
\ No newline at end of file
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import '../register/RegisterSuccess.dart';
import 'package:fundex_app/pages/transaction/Transaction.dart';
class RegisterAgreement extends StatefulWidget {
@override
......@@ -24,7 +24,7 @@ class _RegisterAgreementState extends State<RegisterAgreement> {
context,
new MaterialPageRoute(
builder: (BuildContext builder) =>
MaterialApp(home: RegisterSuccess())));
MaterialApp(home: Transaction())));
// _saveForm();
};
}
......
import 'package:flutter/material.dart';
import 'package:fundex_app/assets/colors.dart';
import 'package:fundex_app/pages/login/Login.dart';
import 'package:google_fonts/google_fonts.dart';
class EmailSent extends StatefulWidget {
@override
_EmailSentState createState() => _EmailSentState();
}
class _EmailSentState extends State<EmailSent> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SafeArea(
child: Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Column(children: <Widget>[
Container(
margin: const EdgeInsets.fromLTRB(0, 48, 0, 0),
child: Image.asset(
'assets/images/fundex-logo.png',
key: Key('fundexLogo'),
width: 82,
height: 22,
),
),
Container(
margin: const EdgeInsets.fromLTRB(0, 48, 0, 0),
child: Text(
'Email Berhasil Dikirim',
key: Key('pageTitleText'),
style: GoogleFonts.inter(
fontSize: 18,
fontWeight: FontWeight.w600,
color: black3),
),
),
Container(
margin: const EdgeInsets.fromLTRB(0, 32, 0, 0),
child: Image.asset(
'assets/images/icon-register-success.png',
key: Key('emailSentIcon'),
width: 162.58,
height: 124,
)),
Container(
margin: const EdgeInsets.fromLTRB(0, 32, 0, 0),
child: Text(
'Kami telah mengirimkan tatuan aktivasi ke email Anda.'
'\nSilahkan cek email untuk melakukan aktivasi akun',
key: Key('pageSubTitleText'),
style: GoogleFonts.inter(
fontSize: 12,
height: 2,
color: black3,
),
textAlign: TextAlign.center,
)),
Container(
margin: const EdgeInsets.fromLTRB(0, 48, 0, 0),
child: SizedBox(
width: 343,
height: 40,
child: ElevatedButton(
key: Key("loginPageButton"),
onPressed: () {
Navigator.push(
context,
new MaterialPageRoute(
builder: (BuildContext context) =>
Login()));
},
child: Text('Masuk',
style: GoogleFonts.roboto(
fontSize: 14, fontWeight: FontWeight.bold)),
style: ElevatedButton.styleFrom(
primary: Color.fromRGBO(14, 40, 75, 1.0))),
),
)
])
]),
),
),
));
}
}
import 'package:flutter/material.dart';
import 'package:fundex_app/api/api.dart';
import 'package:fundex_app/assets/colors.dart';
import 'package:fundex_app/pages/forget-password/EmailSent.dart';
import 'package:google_fonts/google_fonts.dart';
class EmailValidator {
static String validate(String value) {
if (value.isEmpty) {
return 'Email harus di isi';
}
if (!RegExp("^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+.[a-z]").hasMatch(value)) {
return 'Email tidak valid';
}
return null;
}
}
class ForgetPassword extends StatefulWidget {
@override
_ForgetPasswordState createState() => _ForgetPasswordState();
}
class _ForgetPasswordState extends State<ForgetPassword> {
final _keyForm = GlobalKey<FormState>();
var statusCode = 0;
InputDecoration formInputDecoration() {
return InputDecoration(
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: gray4),
borderRadius: BorderRadius.circular(6),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: gray4),
borderRadius: BorderRadius.circular(6),
),
border: OutlineInputBorder(
borderSide: BorderSide(color: gray4),
borderRadius: BorderRadius.circular(6),
),
contentPadding: EdgeInsets.symmetric(vertical: 10.0, horizontal: 10.0));
}
Widget _buildEmail() {
return SizedBox(
child: TextFormField(
key: Key('emailFormField'),
decoration: formInputDecoration(),
validator: EmailValidator.validate,
keyboardType: TextInputType.text,
onSaved: (String value) {
email = value;
},
),
);
}
String email;
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SafeArea(
child: Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Column(
children: <Widget>[
Container(
margin: const EdgeInsets.fromLTRB(0, 48, 0, 0),
child: Image.asset(
'assets/images/fundex-logo.png',
key: Key('fundexLogo'),
width: 82,
height: 22,
),
),
Container(
margin: const EdgeInsets.fromLTRB(0, 48, 0, 0),
child: Text(
'Lupa Password',
key: Key('pageTitleText'),
style: GoogleFonts.inter(
fontSize: 18,
fontWeight: FontWeight.w600,
color: black3),
),
),
Container(
margin: const EdgeInsets.fromLTRB(0, 24, 0, 0),
child: Text(
'Silahkan masukan email yang Anda gunakan.',
key: Key('pageSubTitleText'),
style: GoogleFonts.inter(
fontSize: 12,
height: 2,
color: black3,
),
textAlign: TextAlign.center,
)),
Container(
margin: const EdgeInsets.fromLTRB(0, 24, 0, 0),
width: 343,
child: Form(
key: _keyForm,
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Column(children: <Widget>[
Container(
width: 343,
child: Text(
'Email',
key: Key('emailInputTitle'),
style: GoogleFonts.inter(
fontSize: 12,
fontWeight: FontWeight.w500,
color: Colors.black),
),
),
Container(
width: 343,
margin: const EdgeInsets.fromLTRB(
0, 8, 0, 0),
child: _buildEmail()),
])
]))),
Container(
margin: const EdgeInsets.fromLTRB(0, 32, 0, 0),
child: SizedBox(
width: 343,
height: 52,
child: ElevatedButton(
key: Key('sendButton'),
onPressed: () async {
if (!_keyForm.currentState.validate()) {
return;
}
_keyForm.currentState.save();
statusCode =
await Api().forgetPassword(email, statusCode);
print(statusCode);
if (statusCode == 200) {
Navigator.push(context,
MaterialPageRoute(builder: (context) {
return MaterialApp(home: EmailSent());
}));
}
},
child: Text(
'Kirim',
style: GoogleFonts.roboto(
fontSize: 14, fontWeight: FontWeight.bold),
),
style: ElevatedButton.styleFrom(primary: primary)),
),
),
],
)
],
),
),
),
),
);
}
}
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:fundex_app/api/api.dart';
import 'package:fundex_app/pages/forget-password/ForgetPassword.dart';
import 'package:fundex_app/pages/register/register.dart';
import 'package:fundex_app/pages/transaction/Transaction.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:fundex_app/assets/colors.dart';
class EmailValidator {
static String validate(String value) {
if (value.isEmpty) {
return 'Email harus di isi';
}
if (!RegExp("^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+.[a-z]").hasMatch(value)) {
return 'Email tidak valid';
}
return null;
}
}
class PasswordValidator {
static String validate(String value) {
return value.isEmpty ? 'Password harus di isi' : null;
}
}
class Login extends StatefulWidget {
@override
_LoginState createState() => _LoginState();
}
class _LoginState extends State<Login> {
InputDecoration formInputDecoration() {
return InputDecoration(
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: gray4),
borderRadius: BorderRadius.circular(6),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: gray4),
borderRadius: BorderRadius.circular(6),
),
border: OutlineInputBorder(
borderSide: BorderSide(color: gray4),
borderRadius: BorderRadius.circular(6),
),
contentPadding: EdgeInsets.symmetric(vertical: 10.0, horizontal: 10.0));
}
final _keyForm = GlobalKey<FormState>();
Widget _buildEmail() {
return SizedBox(
child: TextFormField(
key: Key('emailFormField'),
decoration: formInputDecoration(),
validator: EmailValidator.validate,
keyboardType: TextInputType.text,
onSaved: (String value) {
email = value;
},
),
);
}
Widget _buildPassword() {
return SizedBox(
child: TextFormField(
key: Key('passwordFormField'),
obscureText: true,
decoration: formInputDecoration(),
validator: PasswordValidator.validate,
keyboardType: TextInputType.text,
onSaved: (String value) {
password = value;
},
),
);
}
String email;
String password;
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SafeArea(
child: Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
child: Column(
children: <Widget>[
Container(
margin: const EdgeInsets.fromLTRB(0, 48, 0, 0),
child: Image.asset(
'assets/images/fundex-logo.png',
key: Key('fundexLogo'),
width: 82,
height: 22,
),
),
Container(
margin: const EdgeInsets.fromLTRB(0, 48, 0, 0),
child: Text('Login',
key: Key('loginPageTitle'),
style: GoogleFonts.inter(
fontSize: 18,
fontWeight: FontWeight.w600,
color: black3))),
Container(
margin: const EdgeInsets.fromLTRB(0, 16, 0, 0),
child: RichText(
text: TextSpan(
children: <TextSpan>[
TextSpan(
text: 'Belum Punya Akun? ',
style: GoogleFonts.inter(
fontSize: 12,
fontWeight: FontWeight.normal,
color: Color.fromRGBO(46, 47, 48, 1.0))),
TextSpan(
text: 'Daftar',
style: GoogleFonts.inter(
fontSize: 12,
fontWeight: FontWeight.normal,
color: Color.fromRGBO(0, 145, 201, 1.0)),
recognizer: TapGestureRecognizer()
..onTap = () {
Navigator.push(
context,
new MaterialPageRoute(
builder: (BuildContext builder) =>
RegisterPage()));
}),
],
),
),
),
Container(
margin: const EdgeInsets.fromLTRB(0, 72, 0, 0),
width: 343,
child: Form(
key: _keyForm,
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Column(
children: <Widget>[
Container(
width: 343,
child: Text(
'Email',
key: Key('emailInputTitle'),
style: GoogleFonts.inter(
fontSize: 12,
fontWeight: FontWeight.w500,
color: Colors.black),
),
),
Container(
width: 343,
margin: const EdgeInsets.fromLTRB(
0, 8, 0, 0),
child: _buildEmail()),
Container(
width: 343,
margin: const EdgeInsets.fromLTRB(
0, 16, 0, 0),
child: Text(
'Password',
key: Key('passwordInputTitle'),
style: GoogleFonts.inter(
fontSize: 12,
fontWeight: FontWeight.w500,
color: Colors.black),
),
),
Container(
width: 343,
margin: const EdgeInsets.fromLTRB(
0, 8, 0, 0),
child: _buildPassword(),
),
Container(
margin: const EdgeInsets.fromLTRB(
0, 40, 0, 0),
child: SizedBox(
width: 343,
height: 52,
child: ElevatedButton(
key: Key('loginButton'),
onPressed: () {
if (!_keyForm.currentState
.validate()) {
return;
}
_keyForm.currentState.save();
print(email);
print(password);
Api().login(email, password);
Navigator.push(context,
MaterialPageRoute(
builder: (context) {
return MaterialApp(
home: Transaction());
}));
},
child: Text(
'Masuk',
style: GoogleFonts.roboto(
fontSize: 14,
fontWeight:
FontWeight.bold),
),
style: ElevatedButton.styleFrom(
primary: primary)),
),
),
Container(
margin: const EdgeInsets.fromLTRB(
0, 16, 0, 0),
child: RichText(
text: TextSpan(
text: 'Lupa Password?',
style: GoogleFonts.inter(
fontSize: 12,
fontWeight: FontWeight.normal,
color: Color.fromRGBO(
0, 145, 201, 1.0)),
recognizer: TapGestureRecognizer()
..onTap = () {
Navigator.push(
context,
new MaterialPageRoute(
builder: (BuildContext
builder) =>
ForgetPassword()));
}),
),
)
],
)
])))
],
),
),
],
),
),
),
));
}
}
import 'package:flutter/material.dart';
import 'package:fundex_app/pages/login/Login.dart';
import 'package:google_fonts/google_fonts.dart';
class ActivationSuccess extends StatefulWidget {
@override
_ActivationSuccessState createState() => _ActivationSuccessState();
}
class _ActivationSuccessState extends State<ActivationSuccess> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SafeArea(
child: Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Column(children: <Widget>[
Container(
margin: const EdgeInsets.fromLTRB(0, 48, 0, 0),
child: Image.asset(
'assets/images/fundex-logo.png',
key: Key('fundexLogo'),
width: 82,
height: 22,
)),
Container(
margin: const EdgeInsets.fromLTRB(0, 48, 0, 0),
child: Text('Aktivasi berhasil',
key: Key('activationSuccessTitle'),
style: GoogleFonts.inter(
fontSize: 18,
fontWeight: FontWeight.w600,
color: Color.fromRGBO(46, 47, 48, 1.0)))),
Container(
margin: const EdgeInsets.fromLTRB(0, 80, 0, 0),
child: Text(
'Selamat, aktivasi Anda berhasil.'
'\nSilahkan login untuk memulai perjalanan Anda'
'\ndi FundEx',
key: Key('activationSuccessText'),
style: GoogleFonts.inter(
fontSize: 12,