Skip to content

Commit dacac85

Browse files
Merge pull request #53 from kunal-iitj/light-mode
Another option for Light mode Search Field
2 parents c1f96c2 + b2e3f92 commit dacac85

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

lib/views/home/home.dart

+16-14
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,23 @@ class _HomePageState extends State<HomePage> {
112112
if (storageWidget.searchVisible)
113113
Card(
114114
margin: EdgeInsets.symmetric(horizontal: 20, vertical: 10),
115-
child: Padding(
116-
padding: const EdgeInsets.symmetric(horizontal: 6.0),
117-
child: TextField(
118-
autofocus: true,
119-
onChanged: (value) {
120-
storageWidget.search(value);
121-
},
122-
controller: storageWidget.searchController,
123-
decoration: InputDecoration(
124-
border: InputBorder.none,
125-
hintText: 'Search',
126-
prefixIcon: Icon(Icons.search_rounded)
127-
),
128-
115+
child: TextField(
116+
autofocus: true,
117+
onChanged: (value) {
118+
storageWidget.search(value);
119+
},
120+
controller: storageWidget.searchController,
121+
decoration: InputDecoration(
122+
hintText: 'Search',
123+
prefixIcon: Icon(Icons.search_rounded),
124+
fillColor: Colors.grey[300],
125+
filled: true,
126+
border: OutlineInputBorder(
127+
borderSide: BorderSide.none,
128+
borderRadius: BorderRadius.circular(12)
129+
)
129130
),
131+
130132
),
131133
),
132134
Expanded(

0 commit comments

Comments
 (0)