Fakultas Ilmu Komputer UI

Commit 8855d06b authored by wibias fuad's avatar wibias fuad
Browse files

add card for all agreement

parent ec765b0f
......@@ -704,7 +704,7 @@
"languageVersion": "2.7"
}
],
"generated": "2021-06-09T13:02:04.975712Z",
"generated": "2021-06-26T16:19:07.129588Z",
"generator": "pub",
"generatorVersion": "2.12.2"
}
......@@ -464,6 +464,6 @@ file:///C:/flutter/flutter/packages/flutter_web_plugins/
file:///C:/flutter/flutter/packages/flutter_web_plugins/lib/
fundex_app
2.7
file:///E:/Fasilkom/Semester%206/Proyek%20Perangkat%20Lunak/biodata2/ppl2021-d-slhape/
file:///E:/Fasilkom/Semester%206/Proyek%20Perangkat%20Lunak/biodata2/ppl2021-d-slhape/lib/
file:///E:/Fasilkom/Semester%206/Proyek%20Perangkat%20Lunak/all-agreement/ppl2021-d-slhape/
file:///E:/Fasilkom/Semester%206/Proyek%20Perangkat%20Lunak/all-agreement/ppl2021-d-slhape/lib/
2
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_keyboard_visibility","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":[]},{"name":"path_provider","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-2.0.1\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-2.0.0\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.0.0\\\\","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.0.0\\\\","dependencies":[]}],"web":[{"name":"flutter_keyboard_visibility_web","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility_web-2.0.0\\\\","dependencies":[]},{"name":"image_picker_for_web","path":"C:\\\\flutter\\\\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-09 20:03:50.030829","version":"2.0.3"}
\ 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:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":[]},{"name":"path_provider","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-2.0.1\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-2.0.0\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.0.0\\\\","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.0.0\\\\","dependencies":[]}],"web":[{"name":"flutter_keyboard_visibility_web","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility_web-2.0.0\\\\","dependencies":[]},{"name":"image_picker_for_web","path":"C:\\\\flutter\\\\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-26 23:34:30.497602","version":"2.0.3"}
\ 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-09 20:02:04.940711.
# Generated by pub on 2021-06-26 23:19:07.087583.
_fe_analyzer_shared:file:///C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/_fe_analyzer_shared-14.0.0/lib/
analyzer:file:///C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-0.41.2/lib/
args:file:///C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/args-2.0.0/lib/
......
// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=C:\flutter\flutter
FLUTTER_APPLICATION_PATH=E:\Fasilkom\Semester 6\Proyek Perangkat Lunak\biodata2\ppl2021-d-slhape
FLUTTER_APPLICATION_PATH=E:\Fasilkom\Semester 6\Proyek Perangkat Lunak\all-agreement\ppl2021-d-slhape
FLUTTER_TARGET=lib\main.dart
FLUTTER_BUILD_DIR=build
SYMROOT=${SOURCE_ROOT}/../build\ios
......
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=C:\flutter\flutter"
export "FLUTTER_APPLICATION_PATH=E:\Fasilkom\Semester 6\Proyek Perangkat Lunak\biodata2\ppl2021-d-slhape"
export "FLUTTER_APPLICATION_PATH=E:\Fasilkom\Semester 6\Proyek Perangkat Lunak\all-agreement\ppl2021-d-slhape"
export "FLUTTER_TARGET=lib\main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build\ios"
......
import 'package:flutter/material.dart';
import 'package:fundex_app/pages/profile/all_agreement.dart';
import 'package:fundex_app/pages/register/register.dart';
void main() {
runApp(MaterialApp(home: RegisterPage()));
runApp(MaterialApp(home: AllAgreement()));
}
class MyApp extends StatelessWidget {
......
......@@ -33,11 +33,14 @@ class _AllAgreementState extends State<AllAgreement>
void doNothing() {}
Future init() async {
final docsExpiredAt =
await SecureStorage().readSecureData('memberDocs-expiredAt') ?? '';
final docsName = await SecureStorage().readSecureData('memberDocs-name');
var docsImgUrl =
await SecureStorage().readSecureData('memberDocs-imgUrl') ?? '';
// final docsExpiredAt =
// await SecureStorage().readSecureData('memberDocs-expiredAt') ?? '';
// final docsName = await SecureStorage().readSecureData('memberDocs-name');
// var docsImgUrl =
// await SecureStorage().readSecureData('memberDocs-imgUrl') ?? '';
final docsExpiredAt = '2 days';
final docsName = 'Inovasi Dalam Aksi';
var docsImgUrl = 'https://picsum.photos/250?image=9';
setState(() {
this.docsName = docsName;
this.docsExpiredAt = docsExpiredAt;
......@@ -175,191 +178,221 @@ class _AllAgreementState extends State<AllAgreement>
controller: controller,
children: <Widget>[
// Content 'SEMUA'
Scaffold(
key: Key('content-tabbar-semua'),
body: GridView.count(
crossAxisCount: 2,
mainAxisSpacing: 8,
crossAxisSpacing: 16,
children: List.generate(
10,
(index) {
return new Card(
key: Key('card-semua'),
elevation: 10,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(8.0),
bottomRight: Radius.circular(8.0),
topLeft: Radius.circular(8.0),
topRight: Radius.circular(8.0),
),
Container(
margin: EdgeInsets.fromLTRB(0, 8, 0, 0),
child: Scaffold(
key: Key('content-tabbar-semua'),
body: Container(
height: 300,
child: Card(
key: Key('card-semua'),
elevation: 10,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(8.0),
bottomRight: Radius.circular(8.0),
topLeft: Radius.circular(8.0),
topRight: Radius.circular(8.0),
),
child: Column(
children: [
Expanded(
flex: 7,
child: Container(
key: Key('containerForImage'),
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(8.0),
topRight: Radius.circular(8.0),
),
image: DecorationImage(
image: AssetImage(
'assets/images/gymInc.png'),
fit: BoxFit.cover,
),
),
child: Column(
children: [
Expanded(
flex: 10,
child: Container(
key: Key('containerForImage'),
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(8.0),
topRight: Radius.circular(8.0),
),
image: DecorationImage(
image: NetworkImage(docsImgUrl),
fit: BoxFit.cover,
),
),
),
Expanded(
flex: 10,
child: Column(
children: [
Container(
margin: EdgeInsets.fromLTRB(0, 8, 0, 0),
),
Expanded(
flex: 10,
child: Column(
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
Container(
margin: EdgeInsets.fromLTRB(0, 8, 0, 0),
child: Text(
docsName ?? 'docs name here',
style: TextStyle(
color: primary,
fontFamily: 'Noto Sans',
fontWeight: FontWeight.bold,
fontSize: 20),
),
),
SizedBox(
height: 12,
),
Container(
child: Text(
'Expired at $docsExpiredAt',
style: TextStyle(
color: red1,
fontFamily: 'Noto Sans',
fontWeight: FontWeight.bold,
fontSize: 14),
),
),
SizedBox(
height: 30,
),
Container(
child: TextButton(
onPressed: doNothing,
child: Text(
docsName ?? 'docs name here',
'Sign',
style: TextStyle(
color: primary,
color: Colors.white,
fontFamily: 'Noto Sans',
fontWeight: FontWeight.bold,
fontSize: 12),
fontSize: 16),
),
),
SizedBox(
height: 30,
),
Container(
child: ElevatedButton(
onPressed: doNothing,
child: Text(
'Sign',
style: TextStyle(
color: Colors.white,
fontFamily: 'Noto Sans',
fontWeight: FontWeight.bold,
fontSize: 12),
style: ButtonStyle(
padding: MaterialStateProperty.all<
EdgeInsetsGeometry>(
EdgeInsets.fromLTRB(20, 0, 20, 0),
),
style: ButtonStyle(
backgroundColor:
MaterialStateProperty.all<Color>(
primary),
shape: MaterialStateProperty.all<
RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(8),
),
backgroundColor:
MaterialStateProperty.all<Color>(
primary),
shape: MaterialStateProperty.all<
RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(8),
),
),
),
),
],
),
),
],
),
],
),
),
],
),
);
},
),
),
),
),
),
// Content 'PERLU TANDA TANGAN'
Scaffold(
body: GridView.count(
crossAxisCount: 2,
mainAxisSpacing: 8,
crossAxisSpacing: 16,
children: List.generate(
5,
(index) {
return new Card(
key: Key('card-perluTandaTangan'),
elevation: 10,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(8.0),
bottomRight: Radius.circular(8.0),
topLeft: Radius.circular(8.0),
topRight: Radius.circular(8.0),
),
Container(
margin: EdgeInsets.fromLTRB(0, 8, 0, 0),
child: Scaffold(
body: Container(
height: 300,
child: Card(
key: Key('card-semua'),
elevation: 10,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(8.0),
bottomRight: Radius.circular(8.0),
topLeft: Radius.circular(8.0),
topRight: Radius.circular(8.0),
),
child: Column(
children: [
Expanded(
flex: 7,
child: Container(
key: Key('containerForImage'),
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(8.0),
topRight: Radius.circular(8.0),
),
image: DecorationImage(
image: AssetImage(
'assets/images/gymInc.png'),
fit: BoxFit.cover,
),
),
child: Column(
children: [
Expanded(
flex: 10,
child: Container(
key: Key('containerForImage'),
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(8.0),
topRight: Radius.circular(8.0),
),
image: DecorationImage(
image: NetworkImage(docsImgUrl),
fit: BoxFit.cover,
),
),
),
Expanded(
flex: 10,
child: Column(
children: [
Container(
margin: EdgeInsets.fromLTRB(0, 8, 0, 0),
),
Expanded(
flex: 10,
child: Column(
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
Container(
margin: EdgeInsets.fromLTRB(0, 8, 0, 0),
child: Text(
docsName ?? 'docs name here',
style: TextStyle(
color: primary,
fontFamily: 'Noto Sans',
fontWeight: FontWeight.bold,
fontSize: 20),
),
),
SizedBox(
height: 12,
),
Container(
child: Text(
'Expired at $docsExpiredAt',
style: TextStyle(
color: red1,
fontFamily: 'Noto Sans',
fontWeight: FontWeight.bold,
fontSize: 14),
),
),
SizedBox(
height: 30,
),
Container(
child: TextButton(
onPressed: doNothing,
child: Text(
'Investment Agreement',
'Sign',
style: TextStyle(
color: primary,
color: Colors.white,
fontFamily: 'Noto Sans',
fontWeight: FontWeight.bold,
fontSize: 12),
fontSize: 16),
),
),
SizedBox(
height: 30,
),
Container(
child: ElevatedButton(
onPressed: doNothing,
child: Text(
'Sign',
style: TextStyle(
color: Colors.white,
fontFamily: 'Noto Sans',
fontWeight: FontWeight.bold,
fontSize: 12),
style: ButtonStyle(
padding: MaterialStateProperty.all<
EdgeInsetsGeometry>(
EdgeInsets.fromLTRB(20, 0, 20, 0),
),
style: ButtonStyle(
backgroundColor:
MaterialStateProperty.all<Color>(
primary),
shape: MaterialStateProperty.all<
RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(8),
),
backgroundColor:
MaterialStateProperty.all<Color>(
primary),
shape: MaterialStateProperty.all<
RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(8),
),
),
),
),
],
),
),
],
),
],
),
),
],
),
);
},
),
),
),
),
),
......
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