-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TW-2114: Add context menu when click on phone number on mobile
- Loading branch information
Showing
8 changed files
with
126 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_gen/gen_l10n/l10n.dart'; | ||
|
||
enum PhoneNumberContextMenuActions { | ||
call, | ||
copy; | ||
|
||
String getTitle(BuildContext context) { | ||
switch (this) { | ||
case PhoneNumberContextMenuActions.call: | ||
return L10n.of(context)!.callViaCarrier; | ||
case PhoneNumberContextMenuActions.copy: | ||
return L10n.of(context)!.copyNumber; | ||
} | ||
} | ||
|
||
IconData getIconData() { | ||
switch (this) { | ||
case PhoneNumberContextMenuActions.call: | ||
return Icons.call_outlined; | ||
case PhoneNumberContextMenuActions.copy: | ||
return Icons.content_copy_outlined; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1168,8 +1168,8 @@ packages: | |
dependency: "direct main" | ||
description: | ||
path: "." | ||
ref: implement-linkify-text | ||
resolved-ref: "7884a5fa64cbd40f3997c4071bbbdc67049c17ae" | ||
ref: master | ||
resolved-ref: "1cb28dfcc9536e200b3f74ab1c5d48386b8524d3" | ||
url: "https://github.com/linagora/flutter_matrix_html.git" | ||
source: git | ||
version: "1.2.0" | ||
|
@@ -1795,9 +1795,9 @@ packages: | |
dependency: "direct main" | ||
description: | ||
path: "." | ||
ref: refactor-linkify | ||
resolved-ref: b4a418e454ef48c60829d6840b1778f03302f8bf | ||
url: "[email protected]:nqhhdev/linkfy_text.git" | ||
ref: main | ||
resolved-ref: "6690e87f19e024d70b68efbc70d2159c34b5d0fc" | ||
url: "[email protected]:linagora/linkfy_text.git" | ||
source: git | ||
version: "1.1.6" | ||
lints: | ||
|
@@ -2372,6 +2372,14 @@ packages: | |
url: "https://pub.dev" | ||
source: hosted | ||
version: "1.2.3" | ||
pull_down_button: | ||
dependency: "direct main" | ||
description: | ||
name: pull_down_button | ||
sha256: "12cdd8ff187a3150ebdf075e5074299f085579b158d2b4e655ccbafccf95f25b" | ||
url: "https://pub.dev" | ||
source: hosted | ||
version: "0.10.2" | ||
punycode: | ||
dependency: "direct main" | ||
description: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ dependencies: | |
flutter_matrix_html: | ||
git: | ||
url: https://github.com/linagora/flutter_matrix_html.git | ||
ref: implement-linkify-text | ||
ref: master | ||
|
||
contacts_service: | ||
git: | ||
|
@@ -62,8 +62,8 @@ dependencies: | |
|
||
linkfy_text: | ||
git: | ||
url: [email protected]:nqhhdev/linkfy_text.git | ||
ref: refactor-linkify | ||
url: [email protected]:linagora/linkfy_text.git | ||
ref: main | ||
|
||
adaptive_dialog: ^1.8.0+1 | ||
flutter_adaptive_scaffold: ^0.1.4 | ||
|
@@ -211,6 +211,7 @@ dependencies: | |
auto_size_text: 3.0.0 | ||
flutter_avif: 2.4.1 | ||
heif_converter: 1.0.0 | ||
pull_down_button: 0.10.2 | ||
|
||
dev_dependencies: | ||
build_runner: 2.4.12 | ||
|