DiscoverModule/lib/ui_screen/newformlist.dart

105 lines
3.5 KiB
Dart
Raw Normal View History

2024-05-20 10:29:02 +00:00
import 'package:discover_module/ui_screen/interactionform/configprovider.dart';
import 'package:discover_module/ui_screen/interactionform/interactionlistscreen.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class FormList extends StatefulWidget {
const FormList({super.key});
@override
State<FormList> createState() => _FormListState();
}
class _FormListState extends State<FormList> {
@override
Widget build(BuildContext context) {
2024-06-10 11:11:00 +00:00
return SafeArea(
child: Scaffold(
appBar: AppBar(
title: Text("Form List"),
),
body: ListView(
children: [
ListTile(
title: const Text(
"Add My Event",
style: TextStyle(fontSize: 18.0),
),
onTap: () async {
final ConfigDataProvider configDataProvider =
ConfigDataProvider();
2024-05-20 10:29:02 +00:00
2024-06-10 11:11:00 +00:00
await configDataProvider.initConfigUIData123();
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const InteractionListScreen()));
// Navigator.push(context,
// MaterialPageRoute(builder: (context) => AddEventScreen()));
},
trailing: const Icon(Icons.arrow_forward_ios),
2024-05-20 10:29:02 +00:00
),
2024-06-10 11:11:00 +00:00
Divider(),
ListTile(
title: const Text(
"Interaction",
style: TextStyle(fontSize: 18.0),
),
onTap: () async {
print("I am Interaction");
final ConfigDataProvider configDataProvider =
ConfigDataProvider();
2024-05-20 10:29:02 +00:00
2024-06-10 11:11:00 +00:00
await configDataProvider.initConfigUIData();
// Navigator.push(context, MaterialPageRoute(builder: (context)))=> InteractionScreen();
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => InteractionListScreen()));
},
trailing: const Icon(Icons.arrow_forward_ios),
2024-05-20 10:29:02 +00:00
),
2024-06-10 11:11:00 +00:00
const Divider(),
ListTile(
title: const Text(
"New Medical Insight",
style: TextStyle(fontSize: 18.0),
),
onTap: () async {
final ConfigDataProvider configDataProvider =
ConfigDataProvider();
2024-05-20 10:29:02 +00:00
2024-06-10 11:11:00 +00:00
await configDataProvider.initConfigUIDataMedical();
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const InteractionListScreen()));
},
trailing: Icon(Icons.arrow_forward_ios),
),
Divider(),
ListTile(
title: const Text(
"Engagement",
style: TextStyle(fontSize: 18.0),
),
onTap: () async {
final ConfigDataProvider configDataProvider =
ConfigDataProvider();
await configDataProvider.initConfigUIDataEng();
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const InteractionListScreen()));
},
trailing: const Icon(Icons.arrow_forward_ios),
2024-05-20 10:29:02 +00:00
),
2024-06-10 11:11:00 +00:00
Divider(),
],
),
2024-05-20 10:29:02 +00:00
),
);
}
}