null safety

This commit is contained in:
phyothandar
2021-09-10 12:00:08 +06:30
parent a144c945b6
commit 5e672937b5
67 changed files with 901 additions and 896 deletions

View File

@@ -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!;
});
}