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
Eduardo Florence
2021-03-09 11:05:08 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0c03b305dfa998adfcd299ac15a31cf468bb1313
0c03b305
1 parent
9b8e2c68
Return with effective_dart and fix Typos
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
8 deletions
example/lib/lang/translation_service.dart
example/lib/main.dart
lib/get_connect/http/src/http/html/http_request_html.dart
lib/get_connect/http/src/multipart/form_data.dart
lib/get_connect/http/src/utils/utils.dart
pubspec.yaml
example/lib/lang/translation_service.dart
View file @
0c03b30
import
'package:flutter/material.dart'
;
import
'package:get/get.dart'
;
import
'en_US.dart'
;
import
'pt_BR.dart'
;
import
'en_us.dart'
;
import
'pt_br.dart'
;
class
TranslationService
extends
Translations
{
static
Locale
get
locale
=>
Get
.
deviceLocale
!;
...
...
example/lib/main.dart
View file @
0c03b30
import
'dart:ui'
;
import
'package:flutter/material.dart'
;
import
'package:get/get.dart'
;
import
'lang/translation_service.dart'
;
...
...
lib/get_connect/http/src/http/html/http_request_html.dart
View file @
0c03b30
import
'dart:async'
;
import
'dart:html'
as
html
;
import
'dart:typed_data'
;
import
'../../certificates/certificates.dart'
;
import
'../../exceptions/exceptions.dart'
;
...
...
lib/get_connect/http/src/multipart/form_data.dart
View file @
0c03b30
...
...
@@ -107,7 +107,7 @@ class FormData {
for
(
final
file
in
files
)
{
yield
separator
;
yield
utf8
.
encode
(
_fileHeader
(
file
));
yield
*
file
.
value
.
stream
!
as
Stream
<
List
<
int
>>
;
yield
*
file
.
value
.
stream
!;
yield
line
;
}
yield
close
;
...
...
lib/get_connect/http/src/utils/utils.dart
View file @
0c03b30
import
'dart:async'
;
import
'dart:convert'
;
import
'../request/request.dart'
;
bool
isTokenChar
(
int
byte
)
{
return
byte
>
31
&&
byte
<
128
&&
!
SEPARATOR_MAP
[
byte
];
...
...
pubspec.yaml
View file @
0c03b30
...
...
@@ -13,6 +13,7 @@ dependencies:
dev_dependencies
:
flutter_test
:
sdk
:
flutter
effective_dart
:
^1.3.1
# For information on the generic Dart part of this file, see the
...
...
Please
register
or
login
to post a comment