Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Matheus
2020-07-22 11:09:45 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b8a12b1f74457e32da69bbbc2412b9ac02b55726
b8a12b1f
1 parent
076706bd
formatting files according to dartfmt
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
lib/src/regex/get_utils.dart
lib/src/root/root_widget.dart
lib/src/regex/get_utils.dart
View file @
b8a12b1
...
...
@@ -299,7 +299,7 @@ class GetUtils {
// Obter somente os números do CNPJ
var
numbers
=
cnpj
.
replaceAll
(
RegExp
(
r'[^0-9]'
),
''
);
// Testar se o CNPJ possui 14 dígitos
if
(
numbers
.
length
!=
14
)
return
false
;
...
...
lib/src/root/root_widget.dart
View file @
b8a12b1
...
...
@@ -261,7 +261,7 @@ extension Trans on String {
String
get
tr
{
// Returns the key if locale is null.
if
(
Get
.
locale
?.
languageCode
==
null
)
return
this
;
// Checks whether the language code and country code are present, and whether the key is also present.
if
(
Get
.
translations
.
containsKey
(
"
${Get.locale.languageCode}
_
${Get.locale.countryCode}
"
)
&&
...
...
@@ -269,12 +269,12 @@ extension Trans on String {
.
containsKey
(
this
))
{
return
Get
.
translations
[
"
${Get.locale.languageCode}
_
${Get.locale.countryCode}
"
][
this
];
// Checks if there is a callback language in the absence of the specific country, and if it contains that key.
// Checks if there is a callback language in the absence of the specific country, and if it contains that key.
}
else
if
(
Get
.
translations
.
containsKey
(
Get
.
locale
.
languageCode
)
&&
Get
.
translations
[
Get
.
locale
.
languageCode
].
containsKey
(
this
))
{
return
Get
.
translations
[
Get
.
locale
.
languageCode
][
this
];
// If there is no corresponding language or corresponding key, return the key.
// If there is no corresponding language or corresponding key, return the key.
}
else
{
return
this
;
}
...
...
Please
register
or
login
to post a comment