Commit c5894157 authored by Jaenudin Surya Darmatin's avatar Jaenudin Surya Darmatin
parents 348310dc c708746e
This diff is collapsed.
......@@ -687,12 +687,14 @@ class _UserControlState extends State<UserControl> {
}
},
))
]);
}).toList());
})
],
),
)
],
),
),
......
......@@ -128,6 +128,12 @@ class ContactUs2 extends StatelessWidget {
borderSide: BorderSide(width: 1, color: Colors.white),
),
),
validator: (value) {
if (value == null || value.isEmpty) {
return 'Name cannot be empty!!!';
}
return null;
},
),
),
const SizedBox(
......@@ -175,6 +181,12 @@ class ContactUs2 extends StatelessWidget {
BorderSide(width: 1, color: Colors.white),
),
),
validator: (value) {
if (value == null || value.isEmpty) {
return 'Phone cannot be empty!!!';
}
return null;
},
),
),
const SizedBox(
......@@ -199,6 +211,12 @@ class ContactUs2 extends StatelessWidget {
BorderSide(width: 1, color: Colors.white),
),
),
validator: (value) {
if (value == null || value.isEmpty) {
return 'Email cannot be empty!!!';
}
return null;
},
),
),
const SizedBox(
......@@ -237,7 +255,7 @@ class ContactUs2 extends StatelessWidget {
maxLines: 5,
validator: (value) {
if (value == null || value.isEmpty) {
return '*Required';
return 'Message cannot be empty!!!';
}
return null;
},
......
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