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

Commit

Permalink
bump min versions
Browse files Browse the repository at this point in the history
use super parameters
  • Loading branch information
adpinola committed Nov 2, 2022
1 parent 262ba85 commit 602c020
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
/// then displays the selected directory in a dialog.
class GetDirectoryPage extends StatelessWidget {
/// Default Constructor
const GetDirectoryPage({Key? key}) : super(key: key);
const GetDirectoryPage({super.key});

Future<void> _getDirectoryPath(BuildContext context) async {
const String confirmButtonText = 'Choose';
Expand Down Expand Up @@ -58,7 +58,7 @@ class GetDirectoryPage extends StatelessWidget {
/// Widget that displays a text file in a dialog.
class TextDisplay extends StatelessWidget {
/// Creates a `TextDisplay`.
const TextDisplay(this.directoryPath, {Key? key}) : super(key: key);
const TextDisplay(this.directoryPath, {super.key});

/// The path selected in the dialog.
final String directoryPath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
/// Home Page of the application.
class HomePage extends StatelessWidget {
/// Default Constructor
const HomePage({Key? key}) : super(key: key);
const HomePage({super.key});

@override
Widget build(BuildContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void main() {
/// MyApp is the Main Application.
class MyApp extends StatelessWidget {
/// Default Constructor
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
Widget build(BuildContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import 'package:flutter/material.dart';
/// `openFiles`, then displays the selected images in a gallery dialog.
class OpenImagePage extends StatelessWidget {
/// Default Constructor
const OpenImagePage({Key? key}) : super(key: key);
const OpenImagePage({super.key});

Future<void> _openImageFile(BuildContext context) async {
const XTypeGroup typeGroup = XTypeGroup(
Expand Down Expand Up @@ -65,8 +65,7 @@ class OpenImagePage extends StatelessWidget {
/// Widget that displays an image in a dialog.
class ImageDisplay extends StatelessWidget {
/// Default Constructor.
const ImageDisplay(this.fileName, this.filePath, {Key? key})
: super(key: key);
const ImageDisplay(this.fileName, this.filePath, {super.key});

/// The name of the selected file.
final String fileName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import 'package:flutter/material.dart';
/// `openFiles`, then displays the selected images in a gallery dialog.
class OpenMultipleImagesPage extends StatelessWidget {
/// Default Constructor
const OpenMultipleImagesPage({Key? key}) : super(key: key);
const OpenMultipleImagesPage({super.key});

Future<void> _openImageFile(BuildContext context) async {
const XTypeGroup jpgsTypeGroup = XTypeGroup(
Expand Down Expand Up @@ -69,7 +69,7 @@ class OpenMultipleImagesPage extends StatelessWidget {
/// Widget that displays a text file in a dialog.
class MultipleImagesDisplay extends StatelessWidget {
/// Default Constructor.
const MultipleImagesDisplay(this.files, {Key? key}) : super(key: key);
const MultipleImagesDisplay(this.files, {super.key});

/// The files containing the images.
final List<XFile> files;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
/// displays its contents in a dialog.
class OpenTextPage extends StatelessWidget {
/// Default Constructor
const OpenTextPage({Key? key}) : super(key: key);
const OpenTextPage({super.key});

Future<void> _openTextFile(BuildContext context) async {
const XTypeGroup typeGroup = XTypeGroup(
Expand Down Expand Up @@ -62,8 +62,7 @@ class OpenTextPage extends StatelessWidget {
/// Widget that displays a text file in a dialog.
class TextDisplay extends StatelessWidget {
/// Default Constructor.
const TextDisplay(this.fileName, this.fileContent, {Key? key})
: super(key: key);
const TextDisplay(this.fileName, this.fileContent, {super.key});

/// The name of the selected file.
final String fileName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'package:flutter/material.dart';
/// then writes text to a file at that location.
class SaveTextPage extends StatelessWidget {
/// Default Constructor
SaveTextPage({Key? key}) : super(key: key);
SaveTextPage({super.key});

final TextEditingController _nameController = TextEditingController();
final TextEditingController _contentController = TextEditingController();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ publish_to: 'none'
version: 1.0.0

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.10.0"
sdk: ">=2.17.0 <3.0.0"
flutter: ">=3.0.0"

dependencies:
file_selector_platform_interface: ^2.2.0
Expand Down
4 changes: 2 additions & 2 deletions packages/file_selector/file_selector_windows/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 1.0.0

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.10.0"
sdk: ">=2.17.0 <3.0.0"
flutter: ">=3.0.0"

flutter:
plugin:
Expand Down

0 comments on commit 602c020

Please sign in to comment.