Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
CHILD INTELLIGENT ASSESSMENT TOOL
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2020-046
CHILD INTELLIGENT ASSESSMENT TOOL
Commits
8f9555c1
Commit
8f9555c1
authored
Nov 03, 2020
by
Dasun Madushanka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update search_box.dart
parent
79c7dd45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
MainAppDMT/lib/components/search_box.dart
MainAppDMT/lib/components/search_box.dart
+6
-5
No files found.
MainAppDMT/lib/components/search_box.dart
View file @
8f9555c1
...
@@ -3,6 +3,7 @@ import 'package:flutter_svg/flutter_svg.dart';
...
@@ -3,6 +3,7 @@ import 'package:flutter_svg/flutter_svg.dart';
import
'../constants.dart'
;
import
'../constants.dart'
;
//search box class
class
SearchBox
extends
StatelessWidget
{
class
SearchBox
extends
StatelessWidget
{
const
SearchBox
({
const
SearchBox
({
Key
key
,
Key
key
,
...
@@ -20,8 +21,8 @@ class SearchBox extends StatelessWidget {
...
@@ -20,8 +21,8 @@ class SearchBox extends StatelessWidget {
vertical:
kDefaultPadding
/
4
,
// 5 top and bottom
vertical:
kDefaultPadding
/
4
,
// 5 top and bottom
),
),
decoration:
BoxDecoration
(
decoration:
BoxDecoration
(
color:
Colors
.
white
.
withOpacity
(
0.4
),
color:
Colors
.
white
.
withOpacity
(
0.4
),
//box opacity: 0.4
borderRadius:
BorderRadius
.
circular
(
12
),
borderRadius:
BorderRadius
.
circular
(
12
),
// add circular border
),
),
child:
TextField
(
child:
TextField
(
onChanged:
onChanged
,
onChanged:
onChanged
,
...
@@ -29,9 +30,9 @@ class SearchBox extends StatelessWidget {
...
@@ -29,9 +30,9 @@ class SearchBox extends StatelessWidget {
decoration:
InputDecoration
(
decoration:
InputDecoration
(
enabledBorder:
InputBorder
.
none
,
enabledBorder:
InputBorder
.
none
,
focusedBorder:
InputBorder
.
none
,
focusedBorder:
InputBorder
.
none
,
icon:
SvgPicture
.
asset
(
"assets/icons/search.svg"
),
icon:
SvgPicture
.
asset
(
"assets/icons/search.svg"
),
//add the search icon from assesst folder
hintText:
'Search'
,
hintText:
'Search'
,
//hint text
hintStyle:
TextStyle
(
color:
Colors
.
white
),
hintStyle:
TextStyle
(
color:
Colors
.
white
),
//hint style
),
),
),
),
);
);
...
...
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