adding packages
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export 'unsupported.dart' if (dart.library.io) 'io.dart';
|
||||
@@ -0,0 +1,19 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
void setTargetPlatformForDesktop({TargetPlatform platform}) {
|
||||
TargetPlatform targetPlatform;
|
||||
if (platform != null) {
|
||||
targetPlatform = platform;
|
||||
}
|
||||
if (targetPlatform == null) {
|
||||
if (Platform.isMacOS) {
|
||||
targetPlatform = TargetPlatform.iOS;
|
||||
} else if (Platform.isLinux || Platform.isWindows) {
|
||||
targetPlatform = TargetPlatform.android;
|
||||
}
|
||||
}
|
||||
debugDefaultTargetPlatformOverride = targetPlatform;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
void setTargetPlatformForDesktop({TargetPlatform platform}) {}
|
||||
Reference in New Issue
Block a user