Fakultas Ilmu Komputer UI

Commit b077faa3 authored by Ferdi Salim Sungkar's avatar Ferdi Salim Sungkar
Browse files

Merge branch 'PBI-27-prospectus-page' into 'staging'

merging Pbi 27 prospectus page into staging

See merge request !37
parents 692ea91e e707510b
Pipeline #77059 passed with stages
in 45 minutes and 56 seconds
This diff is collapsed.
This diff is collapsed.
# This is a generated file; do not edit or check into version control.
flutter_keyboard_visibility=/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-5.0.0/
flutter_keyboard_visibility_web=/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility_web-2.0.0/
flutter_plugin_android_lifecycle=/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.1/
flutter_secure_storage=/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-3.3.5/
image_picker=/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.7.4/
image_picker_for_web=/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_for_web-2.0.0/
path_provider=/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/
path_provider_linux=/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/
path_provider_macos=/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.0/
path_provider_windows=/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.0/
flutter_keyboard_visibility=D:\\Program Files\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\flutter_keyboard_visibility-5.0.0\\
flutter_keyboard_visibility_web=D:\\Program Files\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\flutter_keyboard_visibility_web-2.0.0\\
flutter_plugin_android_lifecycle=D:\\Program Files\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\flutter_plugin_android_lifecycle-2.0.1\\
flutter_secure_storage=D:\\Program Files\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\flutter_secure_storage-3.3.5\\
image_picker=D:\\Program Files\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\image_picker-0.7.4\\
image_picker_for_web=D:\\Program Files\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\image_picker_for_web-2.0.0\\
path_provider=D:\\Program Files\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider-2.0.1\\
path_provider_linux=D:\\Program Files\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_linux-2.0.0\\
path_provider_macos=D:\\Program Files\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_macos-2.0.0\\
path_provider_windows=D:\\Program Files\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_windows-2.0.0\\
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_keyboard_visibility","path":"/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-5.0.0/","dependencies":[]},{"name":"flutter_secure_storage","path":"/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-3.3.5/","dependencies":[]},{"name":"image_picker","path":"/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.7.4/","dependencies":[]},{"name":"path_provider","path":"/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-5.0.0/","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.1/","dependencies":[]},{"name":"flutter_secure_storage","path":"/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-3.3.5/","dependencies":[]},{"name":"image_picker","path":"/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.7.4/","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.0/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.0/","dependencies":[]}],"web":[{"name":"flutter_keyboard_visibility_web","path":"/Users/ferdisungkar/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility_web-2.0.0/","dependencies":[]},{"name":"image_picker_for_web","path":"/Users/ferdisungkar/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-05-08 15:11:40.764991","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":"D:\\\\Program Files\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"D:\\\\Program Files\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"D:\\\\Program Files\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":[]},{"name":"path_provider","path":"D:\\\\Program Files\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"D:\\\\Program Files\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"D:\\\\Program Files\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-2.0.1\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"D:\\\\Program Files\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"D:\\\\Program Files\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"D:\\\\Program Files\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"D:\\\\Program Files\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-2.0.0\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"D:\\\\Program Files\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.0.0\\\\","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"D:\\\\Program Files\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.0.0\\\\","dependencies":[]}],"web":[{"name":"flutter_keyboard_visibility_web","path":"D:\\\\Program Files\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility_web-2.0.0\\\\","dependencies":[]},{"name":"image_picker_for_web","path":"D:\\\\Program Files\\\\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-05-16 19:18:52.451167","version":"2.0.1"}
\ No newline at end of file
This diff is collapsed.
sdk.dir=/Users/ferdisungkar/Library/Android/sdk
flutter.sdk=/Users/ferdisungkar/flutter
sdk.dir=C:\\Users\\habel\\AppData\\Local\\Android\\sdk
flutter.sdk=D:\\Program Files\\flutter
=======
flutter.buildMode=release
flutter.buildMode=debug
flutter.versionName=1.0.0
flutter.versionCode=1
\ No newline at end of file
import 'package:flutter/material.dart';
import 'package:fundex_app/pages/register/register.dart';
import 'package:fundex_app/pages/business/prospectus_page.dart';
void main() {
runApp(MaterialApp(home: RegisterPage()));
runApp(MaterialApp(home: ProspectusPage()));
}
class MyApp extends StatelessWidget {
......
This diff is collapsed.
......@@ -258,6 +258,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
flutter_multi_carousel:
dependency: "direct main"
description:
name: flutter_multi_carousel
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
......
......@@ -35,6 +35,7 @@ dependencies:
flutter_svg: ^0.19.3
dotted_border: ^1.0.7
image_picker: any
flutter_multi_carousel: ^1.0.0
# The following adds the Cupertino Icons font to your application.
......
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:fundex_app/pages/business/prospectus_page.dart';
void main() {
testWidgets('texts and images are present on the page',
(WidgetTester tester) async {
//initialize
final backIcon = find.byKey(Key('backIcon'));
final appBarTitle = find.byKey(Key('appBarTitle'));
final targetPendnaaanText = find.byKey(Key('targetPendnaaanText'));
final tagetPendanaanValue = find.byKey(Key('tagetPendanaanValue'));
final minimumInvestText = find.byKey(Key('minimumInvestText'));
final minimumInvestValue = find.byKey(Key('minimumInvestValue'));
final effectTypeText = find.byKey(Key('effectTypeText'));
final effectTypeValue = find.byKey(Key('effectTypeValue'));
final preValuationText = find.byKey(Key('preValuationText'));
final preValuationValue = find.byKey(Key('preValuationValue'));
final hargaSatuanText = find.byKey(Key('hargaSatuanText'));
final hargaSatuanValue = find.byKey(Key('hargaSatuanValue'));
final gatheredFundsText = find.byKey(Key('gatheredFundsText'));
final gatheredFundsValue = find.byKey(Key('gatheredFundsValue'));
final fundprogressString = find.byKey(Key('fundprogressString'));
final fundprogressBar = find.byKey(Key('fundprogressBar'));
final buyButton = find.byKey(Key('buyButton'));
final remainingTimeValue = find.byKey(Key('remainingTimeValue'));
// execute
await tester.pumpWidget(MaterialApp(home: ProspectusPage()));
// check outputs
expect(backIcon, findsOneWidget);
expect(appBarTitle, findsOneWidget);
expect(targetPendnaaanText, findsOneWidget);
expect(tagetPendanaanValue, findsOneWidget);
expect(minimumInvestText, findsOneWidget);
expect(minimumInvestValue, findsOneWidget);
expect(effectTypeText, findsOneWidget);
expect(effectTypeValue, findsOneWidget);
expect(preValuationText, findsOneWidget);
expect(preValuationValue, findsOneWidget);
expect(hargaSatuanText, findsOneWidget);
expect(hargaSatuanValue, findsOneWidget);
expect(gatheredFundsText, findsOneWidget);
expect(gatheredFundsValue, findsOneWidget);
expect(fundprogressString, findsOneWidget);
expect(fundprogressBar, findsOneWidget);
expect(buyButton, findsOneWidget);
expect(remainingTimeValue, findsOneWidget);
});
testWidgets('tab system works and can be switched',
(WidgetTester tester) async {
// initialize
final highlightsTabText = find.byKey(Key('highlightsTabText'));
final summaryTabText = find.byKey(Key('summaryTabText'));
final servicesTabText = find.byKey(Key('servicesTabText'));
final bulletPoints = find.byKey(Key('bulletPoints'));
final highlightsContent = find.byKey(Key('highlightsContent'));
// execute
await tester.pumpWidget(MaterialApp(home: ProspectusPage()));
await tester.tap(highlightsTabText);
await tester.pumpAndSettle();
// check outputs
expect(highlightsTabText, findsOneWidget);
expect(summaryTabText, findsOneWidget);
expect(servicesTabText, findsOneWidget);
expect(bulletPoints, findsNWidgets(3));
expect(highlightsContent, findsNWidgets(3));
});
testWidgets('back button can be pressed and navigate',
(WidgetTester tester) async {
// initialize
final backIcon = find.byKey(Key('backIcon'));
final wholePageColumn = find.byKey(Key('wholePageColumn'));
// execute
await tester.pumpWidget(MaterialApp(home: ProspectusPage()));
await tester.tap(backIcon);
await tester.pumpAndSettle();
// check outputs
expect(wholePageColumn, findsOneWidget);
});
testWidgets('button can be pressed', (WidgetTester tester) async {
// initialize
final buyButton = find.byKey(Key('buyButton'));
// execute
await tester.pumpWidget(MaterialApp(home: ProspectusPage()));
await tester.tap(buyButton);
// check outputs
expect(buyButton, findsOneWidget);
});
testWidgets('back button can be pressed and navigate',
(WidgetTester tester) async {
// initialize
final backIcon = find.byKey(Key('backIcon'));
final wholePageColumn = find.byKey(Key('wholePageColumn'));
// execute
await tester.pumpWidget(MaterialApp(home: ProspectusPage()));
await tester.tap(backIcon);
await tester.pumpAndSettle();
// check outputs
expect(wholePageColumn, findsOneWidget);
});
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment