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';
9
9
/// then displays the selected directory in a dialog.
10
10
class GetDirectoryPage extends StatelessWidget {
11
11
/// Default Constructor
12
- const GetDirectoryPage ({Key ? key}) : super ( key: key );
12
+ const GetDirectoryPage ({super . key} );
13
13
14
14
Future <void > _getDirectoryPath (BuildContext context) async {
15
15
const String confirmButtonText = 'Choose' ;
@@ -58,7 +58,7 @@ class GetDirectoryPage extends StatelessWidget {
58
58
/// Widget that displays a text file in a dialog.
59
59
class TextDisplay extends StatelessWidget {
60
60
/// Creates a `TextDisplay` .
61
- const TextDisplay (this .directoryPath, {Key ? key}) : super ( key: key );
61
+ const TextDisplay (this .directoryPath, {super . key} );
62
62
63
63
/// The path selected in the dialog.
64
64
final String directoryPath;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
7
7
/// Home Page of the application.
8
8
class HomePage extends StatelessWidget {
9
9
/// Default Constructor
10
- const HomePage ({Key ? key}) : super ( key: key );
10
+ const HomePage ({super . key} );
11
11
12
12
@override
13
13
Widget build (BuildContext context) {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ void main() {
18
18
/// MyApp is the Main Application.
19
19
class MyApp extends StatelessWidget {
20
20
/// Default Constructor
21
- const MyApp ({Key ? key}) : super ( key: key );
21
+ const MyApp ({super . key} );
22
22
23
23
@override
24
24
Widget build (BuildContext context) {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import 'package:flutter/material.dart';
12
12
/// `openFiles` , then displays the selected images in a gallery dialog.
13
13
class OpenImagePage extends StatelessWidget {
14
14
/// Default Constructor
15
- const OpenImagePage ({Key ? key}) : super ( key: key );
15
+ const OpenImagePage ({super . key} );
16
16
17
17
Future <void > _openImageFile (BuildContext context) async {
18
18
const XTypeGroup typeGroup = XTypeGroup (
@@ -65,8 +65,7 @@ class OpenImagePage extends StatelessWidget {
65
65
/// Widget that displays an image in a dialog.
66
66
class ImageDisplay extends StatelessWidget {
67
67
/// Default Constructor.
68
- const ImageDisplay (this .fileName, this .filePath, {Key ? key})
69
- : super (key: key);
68
+ const ImageDisplay (this .fileName, this .filePath, {super .key});
70
69
71
70
/// The name of the selected file.
72
71
final String fileName;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import 'package:flutter/material.dart';
12
12
/// `openFiles` , then displays the selected images in a gallery dialog.
13
13
class OpenMultipleImagesPage extends StatelessWidget {
14
14
/// Default Constructor
15
- const OpenMultipleImagesPage ({Key ? key}) : super ( key: key );
15
+ const OpenMultipleImagesPage ({super . key} );
16
16
17
17
Future <void > _openImageFile (BuildContext context) async {
18
18
const XTypeGroup jpgsTypeGroup = XTypeGroup (
@@ -69,7 +69,7 @@ class OpenMultipleImagesPage extends StatelessWidget {
69
69
/// Widget that displays a text file in a dialog.
70
70
class MultipleImagesDisplay extends StatelessWidget {
71
71
/// Default Constructor.
72
- const MultipleImagesDisplay (this .files, {Key ? key}) : super ( key: key );
72
+ const MultipleImagesDisplay (this .files, {super . key} );
73
73
74
74
/// The files containing the images.
75
75
final List <XFile > files;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
9
9
/// displays its contents in a dialog.
10
10
class OpenTextPage extends StatelessWidget {
11
11
/// Default Constructor
12
- const OpenTextPage ({Key ? key}) : super ( key: key );
12
+ const OpenTextPage ({super . key} );
13
13
14
14
Future <void > _openTextFile (BuildContext context) async {
15
15
const XTypeGroup typeGroup = XTypeGroup (
@@ -62,8 +62,7 @@ class OpenTextPage extends StatelessWidget {
62
62
/// Widget that displays a text file in a dialog.
63
63
class TextDisplay extends StatelessWidget {
64
64
/// Default Constructor.
65
- const TextDisplay (this .fileName, this .fileContent, {Key ? key})
66
- : super (key: key);
65
+ const TextDisplay (this .fileName, this .fileContent, {super .key});
67
66
68
67
/// The name of the selected file.
69
68
final String fileName;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import 'package:flutter/material.dart';
10
10
/// then writes text to a file at that location.
11
11
class SaveTextPage extends StatelessWidget {
12
12
/// Default Constructor
13
- SaveTextPage ({Key ? key}) : super ( key: key );
13
+ SaveTextPage ({super . key} );
14
14
15
15
final TextEditingController _nameController = TextEditingController ();
16
16
final TextEditingController _contentController = TextEditingController ();
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ publish_to: 'none'
4
4
version : 1.0.0
5
5
6
6
environment :
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"
9
9
10
10
dependencies :
11
11
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+
5
5
version : 1.0.0
6
6
7
7
environment :
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"
10
10
11
11
flutter :
12
12
plugin :
You can’t perform that action at this time.
0 commit comments