Commit 4540171a authored by Amarasinghe A.A.B.G.'s avatar Amarasinghe A.A.B.G.

some changes added

parent f59d4044
......@@ -11,6 +11,7 @@ class AddTempsensitive extends StatefulWidget {
class _AddTempsensitive extends State<AddTempsensitive> {
String value = "";
String value1 = "";
final firstDate = DateTime(2021, 1);
final lastDate = DateTime(2022, 12);
......@@ -67,21 +68,21 @@ class _AddTempsensitive extends State<AddTempsensitive> {
Padding(
padding: EdgeInsets.all(5.0),
child: DropdownButton<String>(
items: [
items: const [
DropdownMenuItem<String>(
value: "panadol",
value: "Panadol",
child: Center(
child: Text("Panadol"),
child: Text("Panadol"),
),
),
DropdownMenuItem<String>(
value: "insulin",
value: "Insulin",
child: Center(
child: Text("Insulin"),
),
),
DropdownMenuItem<String>(
value: "pfizer",
value: "Pfizer Vaccine",
child: Center(
child: Text("Pfizer Vaccine"),
),
......@@ -94,8 +95,8 @@ class _AddTempsensitive extends State<AddTempsensitive> {
}),
},
hint: Text(
"Select Pharmaceutical",
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
"Select Pharmaceutical Name",
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
),
),
),
......@@ -104,6 +105,45 @@ class _AddTempsensitive extends State<AddTempsensitive> {
)
],
)),
Container(
child: Column(
children: <Widget>[
Padding(
padding: EdgeInsets.all(5.0),
child: DropdownButton<String>(
items: [
DropdownMenuItem<String>(
value: "Yes",
child: Center(
child: Text("Yes"),
),
),
DropdownMenuItem<String>(
value: "No",
child: Center(
child: Text("No"),
),
),
],
onChanged: (_value) => {
print(_value.toString()),
setState(() {
value1 = _value!;
}),
},
hint: Text(
"Is Temperature Sensitive?",
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
),
),
),
Text(
"$value1",
)
],
)),
const SizedBox(
height: 10,
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment