Fakultas Ilmu Komputer UI

Commit 277c705e authored by Ferdi Salim Sungkar's avatar Ferdi Salim Sungkar
Browse files

[CHORES] pulling from staging and resolve conflicts

parents a6ee01d7 4c5dd084
Pipeline #67583 passed with stages
in 5 minutes and 10 seconds
......@@ -76,7 +76,6 @@ SonarScanner:
# - echo $PATH
# - sonar-scanner -Dsonar.host.url=https://pmpl.cs.ui.ac.id/sonarqube -Dsonar.login=$SONARQUBE_TOKEN -Dsonar.branch.name=$CI_COMMIT_REF_NAME -Dsonar.projectKey=$SONARQUBE_PROJECT_KEY
# build_android:
# stage: build_android
# before_script:
......@@ -86,4 +85,4 @@ SonarScanner:
# - flutter build apk
# artifacts:
# paths:
# - build/app/outputs/apk/release/app-release.apk
\ No newline at end of file
# - build/app/outputs/apk/release/app-release.apk
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.18537 8.25937L5.1778 8.26694H5.17902L5.18537 8.25937ZM3.57205 9.87269L2.38549 11.0593L1.25 9.92377L8.86463 2.30914C9.49166 1.68211 10.5083 1.68211 11.1353 2.30914L18.7499 9.92377L17.6145 11.0593L16.4278 9.87264V16.3018C16.4278 17.1893 15.7084 17.9088 14.8209 17.9088H5.17902C4.29152 17.9088 3.57205 17.1893 3.57205 16.3018V9.87269ZM14.8221 8.26694L14.8071 8.25188L14.8209 8.26694H14.8221Z" fill="#12284B"/>
</svg>
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10 1C5.1211 1 1 5.1211 1 10C1 14.8789 5.1211 19 10 19C14.8789 19 19 14.8789 19 10C19 5.1211 14.8789 1 10 1ZM10 5.5C11.5543 5.5 12.7 6.6448 12.7 8.2C12.7 9.7552 11.5543 10.9 10 10.9C8.4466 10.9 7.3 9.7552 7.3 8.2C7.3 6.6448 8.4466 5.5 10 5.5ZM5.4046 14.2948C6.2119 13.1068 7.5583 12.3148 9.1 12.3148H10.9C12.4426 12.3148 13.7881 13.1068 14.5954 14.2948C13.4452 15.526 11.8135 16.3 10 16.3C8.1865 16.3 6.5548 15.526 5.4046 14.2948Z" fill="#C4C4C4"/>
</svg>
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M19 9.61356C19 5.14827 14.8387 0.999512 10.0045 0.999512C5.03931 0.999512 0.999985 5.0389 0.999985 10.0042C0.999985 11.6224 1.43071 13.1979 2.24861 14.5812L1.03309 18.9755L5.42757 17.7602C6.69904 18.5121 7.90879 19.0053 9.6137 18.9995C16.6122 18.9755 19 14.0788 19 9.61356ZM5.64563 16.2661L3.01488 16.9939L3.74264 14.3631L3.57676 14.1036C2.79502 12.8805 2.38175 11.463 2.38175 10.0042C2.38175 5.80087 5.80126 2.3813 10.0045 2.3813C14.2077 2.3813 17.6272 5.80087 17.6272 10.0042C17.6272 14.2075 14.2077 17.627 10.0045 17.627C8.54571 17.627 7.12832 17.2137 5.90507 16.432L5.64563 16.2661Z" fill="#C4C4C4"/>
<path d="M9.10005 13.6001H10.9001V15.4001H9.10005V13.6001Z" fill="#C4C4C4"/>
<path d="M11.35 8.36093C11.35 8.76716 11.1939 9.14209 10.9106 9.41683L9.32503 10.9546V12.7H10.675V11.5845L11.822 10.4722C12.3799 9.93108 12.7 9.16165 12.7 8.36093C12.7 6.78332 11.4889 5.5 10 5.5C8.51117 5.5 7.30003 6.78332 7.30003 8.36093H8.65003C8.65003 7.57212 9.2556 6.93046 10 6.93046C10.7445 6.93046 11.35 7.57212 11.35 8.36093Z" fill="#C4C4C4"/>
</svg>
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M5.87702 6.65111H15.3161V6.06107C15.3161 5.5741 14.9173 5.17601 14.4311 5.17601H10.5352V4.6607C10.5352 3.92748 9.93888 3.3335 9.20802 3.3335H6.94225C6.58822 3.3335 6.25545 3.47194 6.00368 3.72371C5.75192 3.97547 5.61424 4.30587 5.61424 4.6607V5.17678H1.7184C1.23143 5.17601 0.833336 5.57407 0.833336 6.06107V13.9653L3.80874 7.93744C4.16985 7.20337 5.06041 6.65111 5.87702 6.65111ZM6.49934 4.6607C6.49934 4.54348 6.54733 4.43254 6.62994 4.34916C6.71255 4.26418 6.82426 4.21779 6.94148 4.21779H9.20726C9.45194 4.21779 9.6494 4.41605 9.6494 4.6607V5.17678H6.49937V4.6607H6.49934Z" fill="#C4C4C4"/>
<path d="M18.5904 7.53418H5.87696C5.39075 7.53418 4.81567 7.89135 4.60245 8.32719L1.18337 15.2535C0.967823 15.6886 1.19045 16.0457 1.67665 16.0457H14.3901C14.8763 16.0457 15.4522 15.6893 15.6662 15.2535L19.0845 8.32719C19.2993 7.89135 19.0782 7.53418 18.5904 7.53418Z" fill="#C4C4C4"/>
</svg>
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.99606 18.4623H3.19486C1.67167 18.4623 0.833328 17.6161 0.833328 16.1008C0.833328 11.7871 0.833328 7.47202 0.833328 3.15567C0.833328 1.71513 1.71103 0.833496 3.1555 0.833496C7.70538 0.833496 12.2553 0.833496 16.8051 0.833496C18.3323 0.833496 19.1667 1.67971 19.1667 3.19502C19.1667 7.514 19.1667 11.829 19.1667 16.1401C19.1667 17.5807 18.285 18.4623 16.8445 18.4662H9.99606V18.4623ZM13.436 12.4601L13.5344 12.6215C13.2668 12.8537 12.9913 13.0741 12.7472 13.3181C12.3812 13.6841 12.3537 14.0817 12.6292 14.3847C12.7036 14.4591 12.7933 14.5166 12.892 14.5532C12.9907 14.5898 13.0961 14.6047 13.2011 14.5968C13.3061 14.589 13.4081 14.5586 13.5003 14.5077C13.5924 14.4569 13.6726 14.3867 13.7351 14.3021C14.3688 13.6763 14.9907 13.0426 15.6283 12.4168C15.7755 12.3174 15.8848 12.1712 15.9384 12.0018C15.992 11.8325 15.9868 11.65 15.9235 11.484C15.7582 11.0904 15.4158 11.051 15.0419 11.051H6.01688C5.40289 11.051 5.05653 11.3147 5.0644 11.7674C5.07227 12.22 5.41469 12.4601 6.04444 12.4601H13.436ZM6.93788 7.17814L6.82768 6.97347C7.07067 6.79796 7.30451 6.61011 7.52826 6.41064C7.92185 6.01705 7.94547 5.62346 7.6424 5.30466C7.33934 4.98585 6.93394 5.03702 6.54036 5.42667C5.9421 6.01705 5.35959 6.60743 4.7574 7.20569C4.50157 7.46152 4.26148 7.72522 4.43072 8.13062C4.59997 8.53602 4.966 8.58325 5.35172 8.57931H14.3059C14.9474 8.57931 15.2701 8.34316 15.2819 7.88659C15.2938 7.43003 14.9671 7.18207 14.3334 7.1742H6.93788V7.17814Z" fill="#C4C4C4"/>
</svg>
PODS:
- Flutter (1.0.0)
- flutter_keyboard_visibility (0.0.1):
- Flutter
- path_provider (0.0.1):
- Flutter
DEPENDENCIES:
- Flutter (from `Flutter`)
- flutter_keyboard_visibility (from `.symlinks/plugins/flutter_keyboard_visibility/ios`)
- path_provider (from `.symlinks/plugins/path_provider/ios`)
EXTERNAL SOURCES:
Flutter:
:path: Flutter
flutter_keyboard_visibility:
:path: ".symlinks/plugins/flutter_keyboard_visibility/ios"
path_provider:
:path: ".symlinks/plugins/path_provider/ios"
SPEC CHECKSUMS:
Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c
flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069
path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
......
......@@ -9,7 +9,7 @@
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
4E1105AFDFB764CDA0F45A2C /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DEE7C19D86F85106B274BB3B /* Pods_Runner.framework */; };
3C624660AB37A721FAF81E09 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4AD07BD9E29F8EC25A3B3672 /* Pods_Runner.framework */; };
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
......@@ -30,10 +30,13 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
0942B1FB2E5D86F35BCE36F4 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
1CD596B11EC5CFFD2BC60CB5 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
492AEE64DA812E666DCA0CCE /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
4AD07BD9E29F8EC25A3B3672 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
......@@ -45,8 +48,7 @@
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
C8A1252FD00F8C0D90B6D099 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
DEE7C19D86F85106B274BB3B /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
B6F17A630EE171B8DD551B49 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
......@@ -54,17 +56,17 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
4E1105AFDFB764CDA0F45A2C /* Pods_Runner.framework in Frameworks */,
3C624660AB37A721FAF81E09 /* Pods_Runner.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
7DCED24F03B1FAAB45EB9BA6 /* Frameworks */ = {
2F6BC351364310884A12B0B6 /* Frameworks */ = {
isa = PBXGroup;
children = (
DEE7C19D86F85106B274BB3B /* Pods_Runner.framework */,
4AD07BD9E29F8EC25A3B3672 /* Pods_Runner.framework */,
);
name = Frameworks;
sourceTree = "<group>";
......@@ -86,8 +88,8 @@
9740EEB11CF90186004384FC /* Flutter */,
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
E12A38702639BC25BF011E0C /* Pods */,
7DCED24F03B1FAAB45EB9BA6 /* Frameworks */,
D92B6358D45677C6BA5ACA77 /* Pods */,
2F6BC351364310884A12B0B6 /* Frameworks */,
);
sourceTree = "<group>";
};
......@@ -114,12 +116,12 @@
path = Runner;
sourceTree = "<group>";
};
E12A38702639BC25BF011E0C /* Pods */ = {
D92B6358D45677C6BA5ACA77 /* Pods */ = {
isa = PBXGroup;
children = (
8639A0D17B0E385960A0B09A /* Pods-Runner.debug.xcconfig */,
C8A1252FD00F8C0D90B6D099 /* Pods-Runner.release.xcconfig */,
1CD596B11EC5CFFD2BC60CB5 /* Pods-Runner.profile.xcconfig */,
492AEE64DA812E666DCA0CCE /* Pods-Runner.debug.xcconfig */,
B6F17A630EE171B8DD551B49 /* Pods-Runner.release.xcconfig */,
0942B1FB2E5D86F35BCE36F4 /* Pods-Runner.profile.xcconfig */,
);
name = Pods;
path = Pods;
......@@ -132,14 +134,14 @@
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
B3FA7FEAB6E2B6849267F3AA /* [CP] Check Pods Manifest.lock */,
F795577621C9ED6783FD621C /* [CP] Check Pods Manifest.lock */,
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
C49DE0CEFEDBC83161714EC7 /* [CP] Embed Pods Frameworks */,
01EDE27328E7B23FDFA854D5 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
......@@ -198,6 +200,23 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
01EDE27328E7B23FDFA854D5 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
......@@ -226,7 +245,7 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
B3FA7FEAB6E2B6849267F3AA /* [CP] Check Pods Manifest.lock */ = {
F795577621C9ED6783FD621C /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
......
import 'package:flutter/material.dart';
const primary = Color(0xFF12284B);
const secondary = Color(0xFF0091C9);
const white = Color(0xFFFFFFFF);
const black1 = Color(0xFF000000);
const gray4 = Color(0xFFBDBDBD);
\ No newline at end of file
......@@ -12,18 +12,20 @@ class MyApp extends StatelessWidget {
title: 'Welcome to Flutter',
home: Scaffold(
floatingActionButton: FloatingActionButton(
key: Key('floatingActionButton'),
onPressed: () {
Navigator.pop(context);
}),
key: Key('floatingActionButton'),
onPressed: () {
Navigator.pop(context);
},
),
appBar: AppBar(
title: Text(
'Welcome to Flutters',
key: Key('welcomeText'),
key: Key('welcomeToFluttersText'),
),
),
body: Center(
child: Text('Hello World'),
key: Key('helloWorldTest'),
),
),
);
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import 'package:flutter/material.dart';
import 'package:fundex_app/constants.dart';
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.fromLTRB(10, 0, 0, 0),
);
}
TextStyle titleTextStyle() {
return TextStyle(
fontWeight: FontWeight.bold,
fontSize: 14,
fontFamily: 'Inter',
color: primary,
);
}
TextStyle miniTitleTextStyle() {
return TextStyle(
fontWeight: FontWeight.normal,
fontSize: 12,
fontFamily: 'Noto Sans',
);
}
TextStyle checkTextStyle() {
return TextStyle(
fontWeight: FontWeight.normal,
fontSize: 12,
fontFamily: 'Inter',
color: primary,
);
}
TextStyle miniTextStyle() {
return TextStyle(
fontWeight: FontWeight.bold,
fontSize: 12,
fontFamily: 'Inter',
color: primary,
);
}
import 'package:flutter/material.dart';
import 'package:fundex_app/pages/business/homekyc.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:fundex_app/assets/colors.dart';
class EmailValidator {
static String validate(String value) {
return value.isEmpty ? 'Email harus di isi' : 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: Color.fromRGBO(46, 47, 48, 1.0)),
)),
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);
Navigator.push(context,
MaterialPageRoute(
builder: (context) {
return MaterialApp(
home: HomeKYC());
}));
},
child: Text(
'Masuk',
style: GoogleFonts.roboto(
fontSize: 14,
fontWeight:
FontWeight.bold),
),
style: ElevatedButton.styleFrom(
primary: primary)),
),
)
],
)
])))
],
),
),
],
),
),
),
));
}
}
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,
height: 2,
color: Color.fromRGBO(46, 47, 48, 1.0)),
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))),
),
)
])
]),
),
),
),
);
}
}