Commit 0c304ab
committed
fix(web): make date format functions globally accessible
Remove const declarations from exported functions (getDateFormat,
getMediumDateFormat, etc.) to make them available on the global scope.
Replace comma operators with semicolons in minified version to prevent
functions from being block-scoped.
This fixes the 'dart.global.getDateFormat is not a function' error
when calling SystemDateTimeFormat().getDatePattern() on Flutter Web.
Closes: #311 parent 3f4d66b commit 0c304ab
File tree
2 files changed
+6
-6
lines changed- web
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments