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:
@@ -109,7 +109,7 @@ class MobileEditAddressState extends State<MobileEditAddress> {
|
||||
.of(context)
|
||||
.contact_name,
|
||||
),
|
||||
validator: (String value) {
|
||||
validator: (String? value) {
|
||||
if (value
|
||||
.trim()
|
||||
.isEmpty) {
|
||||
@@ -164,7 +164,7 @@ class MobileEditAddressState extends State<MobileEditAddress> {
|
||||
.of(context)
|
||||
.mobile_phone_number,
|
||||
),
|
||||
validator: (String value) {
|
||||
validator: (String? value) {
|
||||
if (value
|
||||
.trim()
|
||||
.isEmpty) {
|
||||
@@ -196,7 +196,7 @@ class MobileEditAddressState extends State<MobileEditAddress> {
|
||||
.of(context)
|
||||
.street_line_1,
|
||||
),
|
||||
validator: (String value) {
|
||||
validator: (String? value) {
|
||||
if (value
|
||||
.trim()
|
||||
.isEmpty) {
|
||||
@@ -250,7 +250,7 @@ class MobileEditAddressState extends State<MobileEditAddress> {
|
||||
.of(context)
|
||||
.city,
|
||||
),
|
||||
validator: (String value) {
|
||||
validator: (String? value) {
|
||||
if (value
|
||||
.trim()
|
||||
.isEmpty) {
|
||||
@@ -320,7 +320,7 @@ class MobileEditAddressState extends State<MobileEditAddress> {
|
||||
.of(context)
|
||||
.postal_code,
|
||||
),
|
||||
validator: (String value) {
|
||||
validator: (String? value) {
|
||||
if (value
|
||||
.trim()
|
||||
.isEmpty) {
|
||||
@@ -365,7 +365,7 @@ class MobileEditAddressState extends State<MobileEditAddress> {
|
||||
.of(context)
|
||||
.email,
|
||||
),
|
||||
validator: (String value) {
|
||||
validator: (String? value) {
|
||||
if (value.isNotEmpty && !EmailValidator.validate(value)) {
|
||||
return S
|
||||
.of(context)
|
||||
|
||||
Reference in New Issue
Block a user