null safety
This commit is contained in:
@@ -19,7 +19,7 @@ class _InvitationCreateState extends State<InvitationCreate> {
|
||||
TextEditingController _phoneController = new TextEditingController();
|
||||
|
||||
bool _isLoading = false;
|
||||
String dialCode;
|
||||
late String dialCode;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -85,7 +85,7 @@ class _InvitationCreateState extends State<InvitationCreate> {
|
||||
),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(color: Colors.grey[400], width: 1),
|
||||
border: Border.all(color: Colors.grey.shade400, width: 1),
|
||||
borderRadius: BorderRadius.all(Radius.circular(12.0))),
|
||||
child: CountryCodePicker(
|
||||
onChanged: _countryChange,
|
||||
@@ -140,7 +140,7 @@ class _InvitationCreateState extends State<InvitationCreate> {
|
||||
|
||||
_countryChange(CountryCode countryCode) {
|
||||
setState(() {
|
||||
dialCode = countryCode.dialCode;
|
||||
dialCode = countryCode.dialCode!;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user