added prj editing page, must change to dialog bcz page too big
This commit is contained in:
@@ -10,6 +10,7 @@ class ProjFAB extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
TextEditingController nameController = TextEditingController();
|
||||
TextEditingController locationController = TextEditingController();
|
||||
TextEditingController languageController = TextEditingController();
|
||||
return FloatingActionButton(
|
||||
onPressed: () {
|
||||
showDialog(
|
||||
@@ -33,6 +34,13 @@ class ProjFAB extends StatelessWidget {
|
||||
decoration: InputDecoration(labelText: "Path"),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: TextField(
|
||||
controller: languageController,
|
||||
decoration: InputDecoration(labelText: "Language"),
|
||||
),
|
||||
),
|
||||
|
||||
Row(
|
||||
mainAxisAlignment: .end,
|
||||
@@ -47,7 +55,7 @@ class ProjFAB extends StatelessWidget {
|
||||
Provider.of<GlobalModel>(context, listen: false).addPrj(
|
||||
Project.newValidated(
|
||||
nameController.text,
|
||||
"Rust",
|
||||
languageController.text,
|
||||
locationController.text,
|
||||
[],
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user