Skip to content

Commit

Permalink
fix(dialing-code-comp): Add country dialing codes to picker list (#15)
Browse files Browse the repository at this point in the history
* fix(dialing-code-comp): Add country dialing codes to picker list

* fix(dialing-code-comp): Add country dialing codes to picker list
  • Loading branch information
xsorifc28 authored Feb 11, 2023
1 parent 80cf9a6 commit cb9e2a0
Show file tree
Hide file tree
Showing 2 changed files with 236 additions and 237 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CountryDialingCodePicker extends StatefulWidget {
}

class _State extends State<CountryDialingCodePicker> {
String _value = 'TR';
String _value = '+90';

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -46,9 +46,8 @@ class _State extends State<CountryDialingCodePicker> {
items: widget.countryData
?.map(
(e) => DropdownMenuItem(
value: e["code"].toString(),
// child: Text(e["dialling_code"] + " " + e["name"]),
child: CountryFlagName(code: e["code"], name: e["name"]),
value: e["dialing_code"].toString(),
child: CountryFlagName(code: e["code"], name: "${e["dialing_code"]} ${e["name"]}"),
),
)
.toList(),
Expand Down
Loading

0 comments on commit cb9e2a0

Please sign in to comment.