Project section started

This commit is contained in:
Sewmina
2022-03-24 21:20:35 +05:30
parent 3f8ae3f5f5
commit ac9609b3b6
4 changed files with 67 additions and 46 deletions

View File

@@ -31,6 +31,7 @@ class _NewTaskState extends State<NewTask> {
@override
Widget build(BuildContext context) {
List<String> cats = getCategoryNames();
return Scaffold(
appBar: AppBar(title: Text('New Task Type')),
body: Container(
@@ -77,7 +78,7 @@ class _NewTaskState extends State<NewTask> {
borderRadius: BorderRadius.circular(10),
value: selectedCat,
isExpanded: true,
items: getCategoryNames().map<DropdownMenuItem<String>>(
items: cats.map<DropdownMenuItem<String>>(
(String value) {
return DropdownMenuItem<String>(