Showing
6 changed files
with
4 additions
and
8 deletions
1 | import 'package:flutter/material.dart'; | 1 | import 'package:flutter/material.dart'; |
2 | import 'package:get/get.dart'; | 2 | import 'package:get/get.dart'; |
3 | 3 | ||
4 | -import 'en_US.dart'; | ||
5 | -import 'pt_BR.dart'; | 4 | +import 'en_us.dart'; |
5 | +import 'pt_br.dart'; | ||
6 | 6 | ||
7 | class TranslationService extends Translations { | 7 | class TranslationService extends Translations { |
8 | static Locale get locale => Get.deviceLocale!; | 8 | static Locale get locale => Get.deviceLocale!; |
1 | import 'dart:async'; | 1 | import 'dart:async'; |
2 | import 'dart:html' as html; | 2 | import 'dart:html' as html; |
3 | -import 'dart:typed_data'; | ||
4 | 3 | ||
5 | import '../../certificates/certificates.dart'; | 4 | import '../../certificates/certificates.dart'; |
6 | import '../../exceptions/exceptions.dart'; | 5 | import '../../exceptions/exceptions.dart'; |
@@ -107,7 +107,7 @@ class FormData { | @@ -107,7 +107,7 @@ class FormData { | ||
107 | for (final file in files) { | 107 | for (final file in files) { |
108 | yield separator; | 108 | yield separator; |
109 | yield utf8.encode(_fileHeader(file)); | 109 | yield utf8.encode(_fileHeader(file)); |
110 | - yield* file.value.stream! as Stream<List<int>>; | 110 | + yield* file.value.stream!; |
111 | yield line; | 111 | yield line; |
112 | } | 112 | } |
113 | yield close; | 113 | yield close; |
@@ -13,6 +13,7 @@ dependencies: | @@ -13,6 +13,7 @@ dependencies: | ||
13 | dev_dependencies: | 13 | dev_dependencies: |
14 | flutter_test: | 14 | flutter_test: |
15 | sdk: flutter | 15 | sdk: flutter |
16 | + effective_dart: ^1.3.1 | ||
16 | 17 | ||
17 | 18 | ||
18 | # For information on the generic Dart part of this file, see the | 19 | # For information on the generic Dart part of this file, see the |
-
Please register or login to post a comment