Skip to content

Commit c1f96c2

Browse files
Merge pull request #51 from kunal-iitj/main
Made minor UI changes to the search field on the Home Page
2 parents 36beca5 + 30853b6 commit c1f96c2

File tree

5 files changed

+25
-22
lines changed

5 files changed

+25
-22
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ you can do that and all these approaches can be found at [TaskWarrior-Flutter](h
1010

1111
## Steps
1212

13-
### Installation
13+
### Installation
1414
1. Clone the repository from GitHub:
1515

1616
```bash

lib/views/home/home.dart

+17-7
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,23 @@ class _HomePageState extends State<HomePage> {
110110
child: Column(
111111
children: <Widget>[
112112
if (storageWidget.searchVisible)
113-
Card(
114-
child: TextField(
115-
autofocus: true,
116-
onChanged: (value) {
117-
storageWidget.search(value);
118-
},
119-
controller: storageWidget.searchController,
113+
Card(
114+
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+
129+
),
120130
),
121131
),
122132
Expanded(

lib/widgets/profilefunctions/manageprofile.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ManageProfile extends StatelessWidget {
2121
@override
2222
Widget build(BuildContext context) {
2323
var triples = [
24-
Tuple3(Icons.edit, 'Rename profile', rename),
24+
Tuple3(Icons.edit, 'Rename Profile', rename),
2525
Tuple3(Icons.link, 'Configure Taskserver', configure),
2626
Tuple3(Icons.file_download, 'Export tasks', export),
2727
Tuple3(Icons.copy, 'Copy config to new profile', copy),

lib/widgets/profilefunctions/renameprofiledialog.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class RenameProfileDialog extends StatelessWidget {
1919

2020
return AlertDialog(
2121
scrollable: true,
22-
title: const Text('Rename profile'),
22+
title: const Text('Rename Profile'),
2323
content: TextField(controller: controller),
2424
actions: [
2525
TextButton(

pubspec.lock

+5-12
Original file line numberDiff line numberDiff line change
@@ -394,13 +394,6 @@ packages:
394394
url: "https://pub.dartlang.org"
395395
source: hosted
396396
version: "1.0.3"
397-
jiffy:
398-
dependency: "direct main"
399-
description:
400-
name: jiffy
401-
url: "https://pub.dartlang.org"
402-
source: hosted
403-
version: "5.0.0"
404397
js:
405398
dependency: transitive
406399
description:
@@ -456,7 +449,7 @@ packages:
456449
name: material_color_utilities
457450
url: "https://pub.dartlang.org"
458451
source: hosted
459-
version: "0.2.0"
452+
version: "0.1.5"
460453
meta:
461454
dependency: transitive
462455
description:
@@ -734,7 +727,7 @@ packages:
734727
name: source_span
735728
url: "https://pub.dartlang.org"
736729
source: hosted
737-
version: "1.9.1"
730+
version: "1.9.0"
738731
stack_trace:
739732
dependency: transitive
740733
description:
@@ -783,7 +776,7 @@ packages:
783776
name: test_api
784777
url: "https://pub.dartlang.org"
785778
source: hosted
786-
version: "0.4.13"
779+
version: "0.4.12"
787780
timing:
788781
dependency: transitive
789782
description:
@@ -825,7 +818,7 @@ packages:
825818
name: vector_math
826819
url: "https://pub.dartlang.org"
827820
source: hosted
828-
version: "2.1.3"
821+
version: "2.1.2"
829822
watcher:
830823
dependency: transitive
831824
description:
@@ -869,5 +862,5 @@ packages:
869862
source: hosted
870863
version: "3.1.1"
871864
sdks:
872-
dart: ">=2.18.0-146.0.dev <3.0.0"
865+
dart: ">=2.17.0 <3.0.0"
873866
flutter: ">=3.0.0"

0 commit comments

Comments
 (0)