Skip to content

Commit

Permalink
Fixed Color Contrast in Admin App
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishq5414 committed Mar 22, 2023
1 parent 0df16ed commit 196ffeb
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies

Large diffs are not rendered by default.

21 changes: 16 additions & 5 deletions lib/features/admin/addnotesdata.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class _AddNotesDetailsState extends ConsumerState<AddNotesDetails> {
color: appGreyColor,
),
child: DropdownSearch<String>(

onChanged: (value) => branch = value!,
items: const [
"CSE",
Expand All @@ -95,7 +96,7 @@ class _AddNotesDetailsState extends ConsumerState<AddNotesDetails> {
popupProps: PopupPropsMultiSelection.modalBottomSheet(
isFilterOnline: true,
showSelectedItems: true,
showSearchBox: true,
showSearchBox: false,
title: const Padding(
padding: EdgeInsets.all(8.0),
child: Text('Search for Branch',
Expand All @@ -104,7 +105,7 @@ class _AddNotesDetailsState extends ConsumerState<AddNotesDetails> {
itemBuilder: (context, item, isSelected) {
return Padding(
padding: EdgeInsets.fromLTRB(
size.width * 0.1, size.width * 0.1, 0, 0),
size.width * 0.1, size.width * 0.05, 0, size.width * 0.05),
child: Text(
item,
style: TextStyle(
Expand Down Expand Up @@ -134,9 +135,10 @@ class _AddNotesDetailsState extends ConsumerState<AddNotesDetails> {
onChanged: (value) => year = value!,
items: const ["1", "2", "3", "4"],
popupProps: PopupPropsMultiSelection.modalBottomSheet(

isFilterOnline: true,
showSelectedItems: true,
showSearchBox: true,
showSearchBox: false,
title: const Padding(
padding: EdgeInsets.all(8.0),
child: Text('Year',
Expand All @@ -145,7 +147,7 @@ class _AddNotesDetailsState extends ConsumerState<AddNotesDetails> {
itemBuilder: (context, item, isSelected) {
return Padding(
padding: EdgeInsets.fromLTRB(
size.width * 0.1, size.width * 0.1, 0, 0),
size.width * 0.1, size.width * 0.05, 0, size.width * 0.05),
child: Text(
item,
style: TextStyle(
Expand Down Expand Up @@ -175,6 +177,15 @@ class _AddNotesDetailsState extends ConsumerState<AddNotesDetails> {
onChanged: (value) => course = value!,
items: courselist.map((e) => e.cname).toList(),
popupProps: PopupPropsMultiSelection.modalBottomSheet(
searchFieldProps: const TextFieldProps(
cursorColor: appBlackColor,
decoration: InputDecoration(
hintText: 'Search',
hintStyle: TextStyle(color: appBlackColor),
),
style: TextStyle(color: appBlackColor, fontSize: 16),

),
isFilterOnline: true,
showSelectedItems: true,
showSearchBox: true,
Expand All @@ -186,7 +197,7 @@ class _AddNotesDetailsState extends ConsumerState<AddNotesDetails> {
itemBuilder: (context, item, isSelected) {
return Padding(
padding: EdgeInsets.fromLTRB(
size.width * 0.1, size.width * 0.1, 0, 0),
size.width * 0.1, size.width * 0.05, 0, size.width * 0.05),
child: Text(
item,
style: TextStyle(
Expand Down
Empty file.
15 changes: 0 additions & 15 deletions lib/features/admin/repository/http_repository_admin.dart

This file was deleted.

12 changes: 6 additions & 6 deletions lib/features/settings/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ class SettingsPage extends ConsumerWidget {
signOut();
},
),
DisplayTile(
title: 'Delete Account',
subtitle: 'This action is irreversible',
onpressed: () {
deleteAccount();
}),
// DisplayTile(
// title: 'Delete Account',
// subtitle: 'This action is irreversible',
// onpressed: () {
// deleteAccount();
// }),
],
),
),
Expand Down

0 comments on commit 196ffeb

Please sign in to comment.