-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: latest flutter breaking changes (#8)
* fix: latest flutter breaking changes * chore: update web platform class * chore: update pubspec homepage
- Loading branch information
Showing
7 changed files
with
44 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export 'io.dart' if (dart.library.js_interop) 'web.dart' show Platform; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export 'dart:io' show Platform; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/// Information about the environment in which the current program is running. | ||
/// | ||
/// Platform provides information such as the operating system, | ||
/// the hostname of the computer, the value of environment variables, | ||
/// the path to the running program, | ||
/// and other global properties of the program being run. | ||
abstract final class Platform { | ||
/// Whether the program is running in the web browser | ||
static const isWeb = true; | ||
|
||
/// Whether the operating system is Android | ||
static const isAndroid = false; | ||
|
||
/// Whether the operating system is macOS | ||
static const isMacOS = false; | ||
|
||
/// Whether the operating system is Windows | ||
static const isWindows = false; | ||
|
||
/// Whether the operating system is Fuchsia | ||
static const isFuchsia = false; | ||
|
||
/// Whether the operating system is iOS | ||
static const isIOS = false; | ||
|
||
/// Whether the operating system is Linux | ||
static const isLinux = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters