phase3: bulk null-safety fixes
- validator: (String value) -> (String? value) [30 files] - ElevatedButton.styleFrom(primary:) -> backgroundColor: [31 files] - global Key? param fix [129 files]
This commit is contained in:
@@ -96,7 +96,7 @@ class MobileNewAddressState extends State<MobileNewAddress> {
|
||||
),
|
||||
labelText: S.of(context).contact_name,
|
||||
),
|
||||
validator: (String value) {
|
||||
validator: (String? value) {
|
||||
if (value.trim().isEmpty) {
|
||||
return S.of(context).contact_name_is_required;
|
||||
}
|
||||
@@ -140,7 +140,7 @@ class MobileNewAddressState extends State<MobileNewAddress> {
|
||||
),
|
||||
labelText: S.of(context).mobile_phone_number,
|
||||
),
|
||||
validator: (String value) {
|
||||
validator: (String? value) {
|
||||
if (value.trim().isEmpty) {
|
||||
return S.of(context).mobile_phone_number_is_required;
|
||||
}
|
||||
@@ -165,7 +165,7 @@ class MobileNewAddressState extends State<MobileNewAddress> {
|
||||
),
|
||||
labelText: S.of(context).street_line_1,
|
||||
),
|
||||
validator: (String value) {
|
||||
validator: (String? value) {
|
||||
if (value.trim().isEmpty) {
|
||||
return S.of(context).street_line_1_is_required;
|
||||
}
|
||||
@@ -209,7 +209,7 @@ class MobileNewAddressState extends State<MobileNewAddress> {
|
||||
),
|
||||
labelText: S.of(context).city,
|
||||
),
|
||||
validator: (String value) {
|
||||
validator: (String? value) {
|
||||
if (value.trim().isEmpty) {
|
||||
return S.of(context).city_is_required;
|
||||
}
|
||||
@@ -255,7 +255,7 @@ class MobileNewAddressState extends State<MobileNewAddress> {
|
||||
),
|
||||
labelText: S.of(context).postal_code,
|
||||
),
|
||||
validator: (String value) {
|
||||
validator: (String? value) {
|
||||
if (value.trim().isEmpty) {
|
||||
return S.of(context).postal_code_is_required;
|
||||
}
|
||||
@@ -290,7 +290,7 @@ class MobileNewAddressState extends State<MobileNewAddress> {
|
||||
),
|
||||
labelText: S.of(context).email,
|
||||
),
|
||||
validator: (String value) {
|
||||
validator: (String? value) {
|
||||
if (value.isNotEmpty && !EmailValidator.validate(value)) {
|
||||
return S.of(context).email_is_not_valid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user