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> { ...@@ -687,12 +687,14 @@ class _UserControlState extends State<UserControl> {
} }
}, },
)) ))
]); ]);
}).toList()); }).toList());
}) })
], ],
), ),
) )
], ],
), ),
), ),
......
...@@ -128,6 +128,12 @@ class ContactUs2 extends StatelessWidget { ...@@ -128,6 +128,12 @@ class ContactUs2 extends StatelessWidget {
borderSide: BorderSide(width: 1, color: Colors.white), borderSide: BorderSide(width: 1, color: Colors.white),
), ),
), ),
validator: (value) {
if (value == null || value.isEmpty) {
return 'Name cannot be empty!!!';
}
return null;
},
), ),
), ),
const SizedBox( const SizedBox(
...@@ -175,6 +181,12 @@ class ContactUs2 extends StatelessWidget { ...@@ -175,6 +181,12 @@ class ContactUs2 extends StatelessWidget {
BorderSide(width: 1, color: Colors.white), BorderSide(width: 1, color: Colors.white),
), ),
), ),
validator: (value) {
if (value == null || value.isEmpty) {
return 'Phone cannot be empty!!!';
}
return null;
},
), ),
), ),
const SizedBox( const SizedBox(
...@@ -199,6 +211,12 @@ class ContactUs2 extends StatelessWidget { ...@@ -199,6 +211,12 @@ class ContactUs2 extends StatelessWidget {
BorderSide(width: 1, color: Colors.white), BorderSide(width: 1, color: Colors.white),
), ),
), ),
validator: (value) {
if (value == null || value.isEmpty) {
return 'Email cannot be empty!!!';
}
return null;
},
), ),
), ),
const SizedBox( const SizedBox(
...@@ -237,7 +255,7 @@ class ContactUs2 extends StatelessWidget { ...@@ -237,7 +255,7 @@ class ContactUs2 extends StatelessWidget {
maxLines: 5, maxLines: 5,
validator: (value) { validator: (value) {
if (value == null || value.isEmpty) { if (value == null || value.isEmpty) {
return '*Required'; return 'Message cannot be empty!!!';
} }
return null; 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