File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ import 'dart:core' ;
2
+ import 'dart:io' ;
1
3
import 'package:flutter/material.dart' ;
2
4
import 'package:shared_preferences/shared_preferences.dart' ;
3
5
import 'package:flutter/foundation.dart'
4
6
show debugDefaultTargetPlatformOverride;
5
7
6
- import 'dart:core' ;
7
8
import 'src/basic_sample/basic_sample.dart' ;
8
9
import 'src/call_sample/call_sample.dart' ;
9
10
import 'src/call_sample/data_channel_sample.dart' ;
10
11
import 'src/route_item.dart' ;
11
12
13
+ bool isDesktop () {
14
+ return Platform .isWindows || Platform .isLinux || Platform .isMacOS;
15
+ }
16
+
12
17
void main (){
13
- debugDefaultTargetPlatformOverride = TargetPlatform .fuchsia;
18
+ if (isDesktop ())
19
+ debugDefaultTargetPlatformOverride = TargetPlatform .fuchsia;
14
20
runApp (new MyApp ());
15
21
}
16
22
You can’t perform that action at this time.
0 commit comments