Skip to content

Commit

Permalink
add format to example
Browse files Browse the repository at this point in the history
  • Loading branch information
cedvandenbosch committed Sep 6, 2024
1 parent dff619c commit fe47ebe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion demo/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,15 @@ class _MyHomePageState extends State<MyHomePage> {
ListTile(
title: const Text('Formatted national'),
trailing: phoneNumber != null
? Text(phoneNumber.formatNsn())
? Text(phoneNumber.formatNsn(
format: NsnFormat.national))
: const Text('-'),
),
ListTile(
title: const Text('Formatted international'),
trailing: phoneNumber != null
? Text(phoneNumber.formatNsn(
format: NsnFormat.international))
: const Text('-'),
),
ListTile(
Expand Down

0 comments on commit fe47ebe

Please sign in to comment.