Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit f79e340

Browse files
committed
Annotate all creation of XTypeGroup with // ignore: prefer_const_constructor for file_selector
1 parent 7992b0f commit f79e340

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

packages/file_selector/file_selector/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## NEXT
1+
## 0.9.2+1
22

3-
* Updates minimum Flutter version to 2.10.
3+
* Add `// ignore: prefer_const_constructors` to avoid future errors when converting the `XTypeGroup`s constructor to const.
44

55
## 0.9.2
66

packages/file_selector/file_selector/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for opening and saving files, or selecting
33
directories, using native file selection UI.
44
repository: https://github.com/flutter/plugins/tree/main/packages/file_selector/file_selector
55
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22
6-
version: 0.9.2
6+
version: 0.9.2+1
77

88
environment:
99
sdk: ">=2.12.0 <3.0.0"

packages/file_selector/file_selector/test/file_selector_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ void main() {
1313
const String confirmButtonText = 'Use this profile picture';
1414
const String suggestedName = 'suggested_name';
1515
final List<XTypeGroup> acceptedTypeGroups = <XTypeGroup>[
16+
// ignore: prefer_const_constructors
1617
XTypeGroup(label: 'documents', mimeTypes: <String>[
1718
'application/msword',
1819
'application/vnd.openxmlformats-officedocument.wordprocessing',
1920
]),
21+
// ignore: prefer_const_constructors
2022
XTypeGroup(label: 'images', extensions: <String>[
2123
'jpg',
2224
'png',

0 commit comments

Comments
 (0)