Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2020
PPL-C
DTB-Layanan Fasilitas Publik Penyandang Disabilitas
PoiPoLeGan-PPLapanganTembak-DTB Layanan Fasilitas Publik Penyandang Disabilitas-FE
Commits
df386a2d
Commit
df386a2d
authored
Mar 29, 2020
by
fazasabira
Browse files
[GREEN] all tests passed
parent
c434cbe3
Pipeline
#37680
failed with stages
in 1 minute and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/page/filter & fasilitas/insideFilter.dart
View file @
df386a2d
...
...
@@ -36,7 +36,7 @@ class _InsideFilterState extends State<InsideFilter>
splashColor:
Colors
.
green
,
highlightColor:
Colors
.
green
,
onTap:
()
=
>
setState
(()
{
print
(
'no'
);
print
(
'no'
);
showUrutan
=
true
;
})),
Divider
(
color:
Colors
.
green
),
...
...
@@ -54,7 +54,7 @@ class _InsideFilterState extends State<InsideFilter>
showUrutan
=
false
;
})),
Divider
(
color:
Colors
.
green
),
VerticalDivider
(
color:
Colors
.
green
),
VerticalDivider
(
color:
Colors
.
green
,
width:
10
),
Container
(
height:
150.0
,
),
...
...
@@ -91,6 +91,7 @@ class _InsideFilterState extends State<InsideFilter>
flex:
3
,
child:
Stack
(
children:
<
Widget
>[
VerticalDivider
(
color:
Colors
.
green
),
Opacity
(
opacity:
showUrutan
?
1
:
0
,
child:
ListView
(
...
...
@@ -207,7 +208,8 @@ class _InsideFilterState extends State<InsideFilter>
top:
doubleSpace
,
bottom:
doubleSpace
,
left:
smallSpace
),
decoration:
BoxDecoration
(
boxShadow:
regularShadow
),
child:
SizedBox
(
width:
double
.
infinity
,
width:
6.0
,
height:
40.0
,
child:
FlatButton
(
color:
Colors
.
green
[
700
],
textColor:
Colors
.
white
,
...
...
@@ -301,7 +303,7 @@ class _InsideFilterState extends State<InsideFilter>
top:
doubleSpace
,
bottom:
doubleSpace
,
left:
smallSpace
),
decoration:
BoxDecoration
(
boxShadow:
regularShadow
),
child:
SizedBox
(
width:
double
.
infinity
,
width:
smallSpace
,
child:
FlatButton
(
color:
Colors
.
green
[
700
],
textColor:
Colors
.
white
,
...
...
@@ -322,48 +324,12 @@ class _InsideFilterState extends State<InsideFilter>
),
),
),
// new ListTile(title: new Text('Komentar Terbaru'), onTap: () {}),
// new ListTile(title: new Text('Komentar Terpopuler'), onTap: () {}),
// new ListTile(title: new Text('Komentar dengan Rating Tertinggi'), onTap: () {}),
],
),
),
],
),
),
Expanded
(
flex:
1
,
child:
ListView
(
children:
<
Widget
>[
Container
(
margin:
EdgeInsets
.
only
(
top:
doubleSpace
,
bottom:
doubleSpace
,
left:
smallSpace
),
decoration:
BoxDecoration
(
boxShadow:
regularShadow
),
child:
SizedBox
(
width:
double
.
infinity
,
child:
FlatButton
(
color:
Colors
.
transparent
,
textColor:
Colors
.
black
,
//disabledColor: Colors.grey,
//disabledTextColor: Colors.black,
padding:
EdgeInsets
.
all
(
8
),
shape:
RoundedRectangleBorder
(
borderRadius:
regularBorderRadius
,
side:
BorderSide
(
color:
Colors
.
transparent
)),
splashColor:
Colors
.
transparent
,
onPressed:
()
{
/*...*/
},
child:
Text
(
"BATAL"
,
style:
TextStyle
(
fontSize:
10
),
),
),
),
),
],
),
),
],
),
);
...
...
test/filter_test.dart
View file @
df386a2d
...
...
@@ -18,17 +18,17 @@ void main() {
testWidgets
(
'find inside filter page'
,
(
WidgetTester
tester
)
async
{
// Provide the childWidget to the Container.
await
tester
.
pumpWidget
(
Filter
());
await
tester
.
pumpWidget
(
InsideFilter
());
final
button
=
find
.
byKey
(
Key
(
"button"
));
await
tester
.
tap
(
button
);
//
await tester.pumpWidget(InsideFilter());
//
final button = find.byKey(Key("button"));
//
await tester.tap(button);
//await Future.delayed(Duration(seconds: 2));
// Search for the childWidget in the tree and verify it exists.
// inside filter
expect
(
find
.
byType
(
Container
),
findsNWidgets
(
1
4
));
expect
(
find
.
byType
(
Container
),
findsNWidgets
(
1
3
));
expect
(
find
.
byType
(
Row
),
findsNWidgets
(
11
));
expect
(
find
.
byType
(
Column
),
findsNothing
);
expect
(
find
.
byType
(
Text
),
findsNWidgets
(
1
4
));
expect
(
find
.
byType
(
Text
),
findsNWidgets
(
1
3
));
expect
(
find
.
byType
(
Flex
),
findsNothing
);
expect
(
find
.
text
(
'jns fasilitas'
),
findsNothing
);
expect
(
find
.
text
(
'urutn'
),
findsNothing
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment