feat(plans) Plans create and edit API connect, TextController management and redirect

This commit is contained in:
2024-05-13 17:15:07 +03:00
parent e7e48905cf
commit fb2ebe5a70
12 changed files with 659 additions and 1 deletions

View File

@@ -86,6 +86,16 @@ class PlanSelectScreen extends StatelessWidget {
margin: EdgeInsets.only(
left: 80.h, top: 12.v, bottom: 9.v),
),
Spacer(),
Padding(
padding: const EdgeInsets.only(right: 20.0),
child: GestureDetector(
onTap: () => Navigator.pushNamed(
context,
AppRoutes.planCreateScreen,
),
child: Icon(Icons.create_outlined)),
)
],
),
),
@@ -140,6 +150,13 @@ class PlanSelectScreen extends StatelessWidget {
AppRoutes.planScreen,
arguments: post?['id'].toString(),
),
trailing: GestureDetector(
onTap: () => Navigator.pushNamed(
context,
AppRoutes.planEditScreen,
arguments: post?['id'].toString(),
),
child: Icon(Icons.edit)),
));
},
),