Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
medapp_eksad
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qorri_di
medapp_eksad
Commits
1ecf54e9
Commit
1ecf54e9
authored
Sep 27, 2022
by
Tohap Maruli Pasaribu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add search button
parent
07033f1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
admin_userControl.dart
lib/dashboard/admin/admin_userControl.dart
+18
-2
No files found.
lib/dashboard/admin/admin_userControl.dart
View file @
1ecf54e9
...
...
@@ -11,6 +11,9 @@ class UserControl extends StatefulWidget {
}
class
_UserControlState
extends
State
<
UserControl
>
{
String
_searchResult
=
''
;
TextEditingController
searchController
=
TextEditingController
();
void
apiService
(
BuildContext
context
)
{
FutureBuilder
<
List
<
dynamic
>>(
future:
getUserControl
(),
...
...
@@ -64,6 +67,21 @@ class _UserControlState extends State<UserControl> {
child:
ListView
(
controller:
ScrollController
(),
children:
[
Card
(
child:
new
ListTile
(
leading:
new
Icon
(
Icons
.
search
),
title:
new
TextField
(
controller:
searchController
,
decoration:
new
InputDecoration
(
hintText:
'Search'
,
border:
InputBorder
.
none
),
onChanged:
(
value
)
{
setState
(()
{
_searchResult
=
value
;
});
},
),
),
),
FutureBuilder
<
List
<
dynamic
>>(
future:
getUserControl
(),
builder:
(
BuildContext
context
,
AsyncSnapshot
snapshot
)
{
...
...
@@ -111,8 +129,6 @@ class _UserControlState extends State<UserControl> {
rows:
List
.
generate
(
snapshot
.
data
.
length
,
(
index
)
{
var
pgm
=
snapshot
.
data
[
index
];
bool
_isEditingText
=
false
;
final
nameRSController
=
TextEditingController
()
..
text
=
pgm
[
'namaRs'
].
toString
();
final
phoneRSController
=
TextEditingController
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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