This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +15
-17
lines changed
packages/file_selector/file_selector_windows Expand file tree Collapse file tree 9 files changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
99/// then displays the selected directory in a dialog.
1010class GetDirectoryPage extends StatelessWidget {
1111 /// Default Constructor
12- const GetDirectoryPage ({Key ? key}) : super ( key: key );
12+ const GetDirectoryPage ({super . key} );
1313
1414 Future <void > _getDirectoryPath (BuildContext context) async {
1515 const String confirmButtonText = 'Choose' ;
@@ -58,7 +58,7 @@ class GetDirectoryPage extends StatelessWidget {
5858/// Widget that displays a text file in a dialog.
5959class TextDisplay extends StatelessWidget {
6060 /// Creates a `TextDisplay` .
61- const TextDisplay (this .directoryPath, {Key ? key}) : super ( key: key );
61+ const TextDisplay (this .directoryPath, {super . key} );
6262
6363 /// The path selected in the dialog.
6464 final String directoryPath;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
77/// Home Page of the application.
88class HomePage extends StatelessWidget {
99 /// Default Constructor
10- const HomePage ({Key ? key}) : super ( key: key );
10+ const HomePage ({super . key} );
1111
1212 @override
1313 Widget build (BuildContext context) {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ void main() {
1818/// MyApp is the Main Application.
1919class MyApp extends StatelessWidget {
2020 /// Default Constructor
21- const MyApp ({Key ? key}) : super ( key: key );
21+ const MyApp ({super . key} );
2222
2323 @override
2424 Widget build (BuildContext context) {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import 'package:flutter/material.dart';
1212/// `openFiles` , then displays the selected images in a gallery dialog.
1313class OpenImagePage extends StatelessWidget {
1414 /// Default Constructor
15- const OpenImagePage ({Key ? key}) : super ( key: key );
15+ const OpenImagePage ({super . key} );
1616
1717 Future <void > _openImageFile (BuildContext context) async {
1818 const XTypeGroup typeGroup = XTypeGroup (
@@ -65,8 +65,7 @@ class OpenImagePage extends StatelessWidget {
6565/// Widget that displays an image in a dialog.
6666class ImageDisplay extends StatelessWidget {
6767 /// Default Constructor.
68- const ImageDisplay (this .fileName, this .filePath, {Key ? key})
69- : super (key: key);
68+ const ImageDisplay (this .fileName, this .filePath, {super .key});
7069
7170 /// The name of the selected file.
7271 final String fileName;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import 'package:flutter/material.dart';
1212/// `openFiles` , then displays the selected images in a gallery dialog.
1313class OpenMultipleImagesPage extends StatelessWidget {
1414 /// Default Constructor
15- const OpenMultipleImagesPage ({Key ? key}) : super ( key: key );
15+ const OpenMultipleImagesPage ({super . key} );
1616
1717 Future <void > _openImageFile (BuildContext context) async {
1818 const XTypeGroup jpgsTypeGroup = XTypeGroup (
@@ -69,7 +69,7 @@ class OpenMultipleImagesPage extends StatelessWidget {
6969/// Widget that displays a text file in a dialog.
7070class MultipleImagesDisplay extends StatelessWidget {
7171 /// Default Constructor.
72- const MultipleImagesDisplay (this .files, {Key ? key}) : super ( key: key );
72+ const MultipleImagesDisplay (this .files, {super . key} );
7373
7474 /// The files containing the images.
7575 final List <XFile > files;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
99/// displays its contents in a dialog.
1010class OpenTextPage extends StatelessWidget {
1111 /// Default Constructor
12- const OpenTextPage ({Key ? key}) : super ( key: key );
12+ const OpenTextPage ({super . key} );
1313
1414 Future <void > _openTextFile (BuildContext context) async {
1515 const XTypeGroup typeGroup = XTypeGroup (
@@ -62,8 +62,7 @@ class OpenTextPage extends StatelessWidget {
6262/// Widget that displays a text file in a dialog.
6363class TextDisplay extends StatelessWidget {
6464 /// Default Constructor.
65- const TextDisplay (this .fileName, this .fileContent, {Key ? key})
66- : super (key: key);
65+ const TextDisplay (this .fileName, this .fileContent, {super .key});
6766
6867 /// The name of the selected file.
6968 final String fileName;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import 'package:flutter/material.dart';
1010/// then writes text to a file at that location.
1111class SaveTextPage extends StatelessWidget {
1212 /// Default Constructor
13- SaveTextPage ({Key ? key}) : super ( key: key );
13+ SaveTextPage ({super . key} );
1414
1515 final TextEditingController _nameController = TextEditingController ();
1616 final TextEditingController _contentController = TextEditingController ();
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ publish_to: 'none'
44version : 1.0.0
55
66environment :
7- sdk : " >=2.12 .0 <3.0.0"
8- flutter : " >=2.10 .0"
7+ sdk : " >=2.17 .0 <3.0.0"
8+ flutter : " >=3.0 .0"
99
1010dependencies :
1111 file_selector_platform_interface : ^2.2.0
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
55version : 1.0.0
66
77environment :
8- sdk : " >=2.12 .0 <3.0.0"
9- flutter : " >=2.10 .0"
8+ sdk : " >=2.17 .0 <3.0.0"
9+ flutter : " >=3.0 .0"
1010
1111flutter :
1212 plugin :
You can’t perform that action at this time.
0 commit comments