Fakultas Ilmu Komputer UI

Commit 07df05b1 authored by Manuel Yoseph Ray's avatar Manuel Yoseph Ray
Browse files

merge conflict

parents 8ca9a214 0676b4b7
Pipeline #83911 failed with stages
in 1 minute and 55 seconds
......@@ -253,6 +253,12 @@
"packageUri": "lib/",
"languageVersion": "2.1"
},
{
"name": "flutter_spinkit",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_spinkit-4.1.2+1",
"packageUri": "lib/",
"languageVersion": "2.5"
},
{
"name": "flutter_svg",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.19.3",
......@@ -704,7 +710,7 @@
"languageVersion": "2.7"
}
],
"generated": "2021-06-27T11:47:49.418545Z",
"generated": "2021-06-28T04:38:33.287638Z",
"generator": "pub",
"generatorVersion": "2.12.0"
}
......@@ -166,6 +166,10 @@ flutter_secure_storage
2.1
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-3.3.5/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-3.3.5/lib/
flutter_spinkit
2.5
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_spinkit-4.1.2+1/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_spinkit-4.1.2+1/lib/
flutter_svg
2.2
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.19.3/
......
{"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-28 11:28:00.090885","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-28 11:40:28.124276","version":"2.0.1"}
\ No newline at end of file
......@@ -3,7 +3,7 @@
#
# For more info see: https://dart.dev/go/dot-packages-deprecation
#
# Generated by pub on 2021-06-27 18:47:49.398544.
# Generated by pub on 2021-06-28 11:38:33.254636.
_fe_analyzer_shared:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/_fe_analyzer_shared-14.0.0/lib/
analyzer:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-0.41.2/lib/
args:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/args-2.0.0/lib/
......@@ -46,6 +46,7 @@ flutter_keyboard_visibility_web:file:///C:/src/flutter/.pub-cache/hosted/pub.dar
flutter_multi_carousel:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_multi_carousel-1.0.3/lib/
flutter_plugin_android_lifecycle:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.1/lib/
flutter_secure_storage:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-3.3.5/lib/
flutter_spinkit:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_spinkit-4.1.2+1/lib/
flutter_svg:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.19.3/lib/
flutter_test:file:///C:/src/flutter/packages/flutter_test/lib/
flutter_typeahead:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_typeahead-3.1.1/lib/
......
// This is a generated file; do not edit or check into version control.
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
FLUTTER_ROOT=/Users/ferdisungkar/flutter
FLUTTER_APPLICATION_PATH=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape
FLUTTER_TARGET=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape/lib/main.dart
=======
FLUTTER_ROOT=C:\flutter\flutter
FLUTTER_APPLICATION_PATH=E:\Fasilkom\Semester 6\Proyek Perangkat Lunak\biodata2\ppl2021-d-slhape
FLUTTER_TARGET=lib\main.dart
>>>>>>> aec21a9964e4c1cd3acf319fb5854abd153112cb
=======
FLUTTER_ROOT=C:\flutter\flutter
FLUTTER_APPLICATION_PATH=E:\Fasilkom\Semester 6\Proyek Perangkat Lunak\biodata2\ppl2021-d-slhape
FLUTTER_TARGET=lib\main.dart
=======
FLUTTER_ROOT=/Users/ferdisungkar/flutter
FLUTTER_APPLICATION_PATH=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape
FLUTTER_TARGET=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape/lib/main.dart
>>>>>>> 91daa656c5e94ce17276f720ff6972311abf7c69
>>>>>>> 0b764942660bfa83f5e9ea7e682f8641f77f4063
=======
FLUTTER_ROOT=C:\flutter\flutter
FLUTTER_APPLICATION_PATH=E:\Fasilkom\Semester 6\Proyek Perangkat Lunak\biodata2\ppl2021-d-slhape
FLUTTER_TARGET=lib\main.dart
>>>>>>> 6ba140add67633bd5eaa17ae4e8115b8878ee220
=======
FLUTTER_ROOT=/Users/ferdisungkar/flutter
FLUTTER_APPLICATION_PATH=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape
FLUTTER_TARGET=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape/lib/main.dart
>>>>>>> a454bc5e5a6e63095408b4322e7350020f1ab114
FLUTTER_BUILD_DIR=build
SYMROOT=${SOURCE_ROOT}/../build/ios
FLUTTER_BUILD_NAME=1.0.0
......
#!/bin/sh
# This is a generated file; do not edit or check into version control.
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
export "FLUTTER_ROOT=/Users/ferdisungkar/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape"
export "FLUTTER_TARGET=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape/lib/main.dart"
=======
export "FLUTTER_ROOT=C:\flutter\flutter"
export "FLUTTER_APPLICATION_PATH=E:\Fasilkom\Semester 6\Proyek Perangkat Lunak\biodata2\ppl2021-d-slhape"
export "FLUTTER_TARGET=lib\main.dart"
>>>>>>> aec21a9964e4c1cd3acf319fb5854abd153112cb
=======
export "FLUTTER_ROOT=C:\flutter\flutter"
export "FLUTTER_APPLICATION_PATH=E:\Fasilkom\Semester 6\Proyek Perangkat Lunak\biodata2\ppl2021-d-slhape"
export "FLUTTER_TARGET=lib\main.dart"
=======
export "FLUTTER_ROOT=/Users/ferdisungkar/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape"
export "FLUTTER_TARGET=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape/lib/main.dart"
>>>>>>> 91daa656c5e94ce17276f720ff6972311abf7c69
>>>>>>> 0b764942660bfa83f5e9ea7e682f8641f77f4063
=======
export "FLUTTER_ROOT=C:\flutter\flutter"
export "FLUTTER_APPLICATION_PATH=E:\Fasilkom\Semester 6\Proyek Perangkat Lunak\biodata2\ppl2021-d-slhape"
export "FLUTTER_TARGET=lib\main.dart"
>>>>>>> 6ba140add67633bd5eaa17ae4e8115b8878ee220
=======
export "FLUTTER_ROOT=/Users/ferdisungkar/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape"
export "FLUTTER_TARGET=/Users/ferdisungkar/Desktop/Files/Universitas-Indonesia/Semester-6/PPL/Project/ppl2021-d-slhape/lib/main.dart"
>>>>>>> a454bc5e5a6e63095408b4322e7350020f1ab114
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
export "FLUTTER_BUILD_NAME=1.0.0"
......
This diff is collapsed.
import 'package:flutter/material.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';
class Loading extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.white,
child: Center(
child: SpinKitCircle(
color: Color.fromRGBO(18, 40, 75, 1),
size: 100.0,
duration: const Duration(milliseconds: 700),
),
),
);
}
}
class EquityBanners {
List<Map<String, String>> bannerList;
EquityBanners({this.bannerList});
factory EquityBanners.fromJson(Map<String, String> jsonData) {
var list = jsonData['offering_banners'] as List;
List<Map<String, String>> bannerList = list;
return EquityBanners(bannerList: bannerList);
}
List<Map<String, String>> getBannerList() {
return this.bannerList;
}
}
import 'package:flutter/cupertino.dart';
import 'package:intl/intl.dart';
import 'package:time_formatter/time_formatter.dart';
......@@ -103,4 +104,20 @@ class Ukm {
String get beautifyTime {
return formatTime(remainingTime);
}
ImageProvider<Object> get ukmBanner {
if (this.bannerImg == "") {
return AssetImage('assets/images/equityWithNoImage.jpg');
} else {
return NetworkImage(this.bannerImg);
}
}
Widget ukmLogo(String logoUrl) {
try {
return Image.network(this.logoUrl);
} catch (e) {
return Image.asset('assets/images/tidak-ada-perjanjian.png');
}
}
}
This diff is collapsed.
......@@ -2,6 +2,7 @@ import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:fundex_app/api/api.dart';
import 'package:fundex_app/assets/loading.dart';
import 'package:fundex_app/pages/business/cardsListOnHome.dart';
import 'package:fundex_app/pages/business/prospectus_page.dart';
import 'package:google_fonts/google_fonts.dart';
......@@ -19,14 +20,20 @@ class HomeKYC extends StatefulWidget {
class _HomeKYCState extends State<HomeKYC> {
Future<EquityOfferings> futureEquities;
bool alreadyRegistered = false;
bool userChecked = false;
bool lihatSemuaIsClicked = false;
List<Ukm> ukmList = [];
void initState() {
super.initState();
futureEquities = Api().getEquities();
checkUser();
}
Widget buildUkmCarousel(BuildContext context,
AsyncSnapshot<EquityOfferings> snapshot, int index) {
List<Ukm> ukmList = snapshot.data.getUkmList();
ukmList = snapshot.data.getUkmList();
return new Container(
alignment: Alignment.center,
margin: EdgeInsets.fromLTRB(0.0, 24.0, 0.0, 0.0),
......@@ -54,10 +61,21 @@ class _HomeKYCState extends State<HomeKYC> {
ProspectusPage((ukmList[index].id).toString())));
},
child: Container(
margin: EdgeInsets.fromLTRB(0.0, 16.0, 0.0, 16.0),
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.5),
spreadRadius: 0,
blurRadius: 8,
offset: Offset(0, 0), // changes position of shadow
),
],
),
child: Column(
children: [
Expanded(
flex: 7,
flex: 8,
child: Container(
key: Key('containerForWholeCarousel'),
decoration: BoxDecoration(
......@@ -66,7 +84,7 @@ class _HomeKYCState extends State<HomeKYC> {
topRight: Radius.circular(8.0),
),
image: DecorationImage(
image: NetworkImage(ukmList[index].bannerImg),
image: ukmList[index].ukmBanner,
fit: BoxFit.cover,
),
),
......@@ -83,15 +101,6 @@ class _HomeKYCState extends State<HomeKYC> {
bottomLeft: Radius.circular(8.0),
bottomRight: Radius.circular(8.0),
),
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.5),
spreadRadius: 0,
blurRadius: 8,
offset:
Offset(0, 0), // changes position of shadow
),
],
),
alignment: Alignment.center,
child: Column(
......@@ -106,10 +115,8 @@ class _HomeKYCState extends State<HomeKYC> {
flex: 2,
child: Container(
margin: EdgeInsets.fromLTRB(8, 0, 8, 0),
child: Image.network(
ukmList[index].logoUrl,
key: Key('ukmLogo'),
),
child: ukmList[index]
.ukmLogo(ukmList[index].logoUrl),
),
),
Expanded(
......@@ -368,84 +375,122 @@ class _HomeKYCState extends State<HomeKYC> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
resizeToAvoidBottomInset: false,
appBar: AppBar(
backgroundColor: Colors.white,
title: Image.asset(
'assets/images/fundex.png',
key: Key('logoFundex'),
),
),
body: SafeArea(
child: SingleChildScrollView(
child: Column(
key: Key('wholePageColumn'),
crossAxisAlignment: CrossAxisAlignment.start,
children: [
registeredUser(context),
Container(
alignment: Alignment.center,
key: Key('containerPenawaranAndLihatSemua'),
margin: EdgeInsets.fromLTRB(24.0, 0.0, 24.0, 0.0),
child: Row(
key: Key('rowPenawaranAndLihatSemua'),
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Text(
'Penawaran',
key: Key('stringPenawaran'),
style: GoogleFonts.inter(
color: Color.fromRGBO(0, 0, 0, 1.0),
fontSize: 16.0,
),
),
RichText(
key: Key('stringLihatSemua'),
text: TextSpan(
text: 'Lihat Semua >>',
return userChecked == false || lihatSemuaIsClicked == true
? Loading()
: Scaffold(
backgroundColor: Colors.white,
resizeToAvoidBottomInset: false,
appBar: AppBar(
backgroundColor: Colors.white,
title: Image.asset(
'assets/images/fundex.png',
key: Key('logoFundex'),
),
),
body: SafeArea(
child: SingleChildScrollView(
child: Column(
key: Key('wholePageColumn'),
crossAxisAlignment: CrossAxisAlignment.start,
children: [
getCard(),
Container(
alignment: Alignment.center,
key: Key('containerPenawaranAndLihatSemua'),
margin: EdgeInsets.fromLTRB(24.0, 0.0, 24.0, 0.0),
child: Row(
key: Key('rowPenawaranAndLihatSemua'),
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Text(
'Penawaran',
key: Key('stringPenawaran'),
style: GoogleFonts.inter(
color: Color.fromRGBO(189, 189, 189, 1.0),
fontSize: 12.0,
color: Color.fromRGBO(0, 0, 0, 1.0),
fontSize: 16.0,
),
recognizer: TapGestureRecognizer()
..onTap = () {
Navigator.push(context,
MaterialPageRoute(builder: (context) {
return MaterialApp(home: ExploreBusiness());
}));
})),
]),
),
Container(
alignment: Alignment.center,
margin: EdgeInsets.fromLTRB(0.0, 24.0, 0.0, 0.0),
child: FutureBuilder<EquityOfferings>(
future: futureEquities,
builder: (context, snapshot) {
if (snapshot.hasData) {
return buildUkmCarousel(context, snapshot,
snapshot.data.getUkmList().length);
),
RichText(
key: Key('stringLihatSemua'),
text: TextSpan(
text: 'Lihat Semua >>',
style: GoogleFonts.inter(
color: Color.fromRGBO(189, 189, 189, 1.0),
fontSize: 12.0,
),
recognizer: TapGestureRecognizer()
..onTap = () {
setState(() {
lihatSemuaIsClicked = true;
});
Navigator.push(context,
MaterialPageRoute(
builder: (context) {
return MaterialApp(
home: ExploreBusiness());
}));
})),
]),
),
Container(
alignment: Alignment.center,
margin: EdgeInsets.fromLTRB(0.0, 24.0, 0.0, 0.0),
child: FutureBuilder<EquityOfferings>(
future: futureEquities,
builder: (context, snapshot) {
if (snapshot.hasData) {
return buildUkmCarousel(context, snapshot,
snapshot.data.getUkmList().length);
// SingleChildScrollView(
// scrollDirection: Axis.vertical,
// child: buildUkmCard(context, snapshot));
} else if (snapshot.hasError) {
print('${snapshot.error}');
return Container(child: Text('${snapshot.error}'));
} else {
return Container(
width: 0,
height: 0,
);
}
}),
// SingleChildScrollView(
// scrollDirection: Axis.vertical,
// child: buildUkmCard(context, snapshot));
} else if (snapshot.hasError) {
print('${snapshot.error}');
return Container(
child: Text('${snapshot.error}'));
} else {
return Container(
width: 0,
height: 0,
);
}
}),
),
],
),
),
],
),
),
),
);
),
);
}
Future checkUser() async {
final List<dynamic> getMemberAttribute = await Api().getMemberAttribute();
for (var i = 0; i < getMemberAttribute.length; i++) {
if (getMemberAttribute[i]['attribute_name'] == 'kyc_progress') {
var map = (getMemberAttribute[i] as Map<String, dynamic>);
var val = (map)['attribute_value'];
var str = val.substring(1, val.length - 1);
var lastStep = str.split(",")[4];
var value = lastStep.substring(8);
if (value == "true") {
setState(() {
alreadyRegistered = true;
});
}
}
}
setState(() {
userChecked = true;
});
}
Widget getCard() {
if (alreadyRegistered == true) {
return registeredUser(context);
} else {
return unregisteredUser(context);
}
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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