Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5890f0

Browse files
authored
[macOS] Add platform_view example. (#111005)
1 parent dca8512 commit c5890f0

21 files changed

+1329
-2
lines changed

examples/platform_view/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ class _MyHomePageState extends State<MyHomePage> {
5454
case TargetPlatform.iOS:
5555
return const Text('Continue in iOS view');
5656
case TargetPlatform.windows:
57-
return const Text('Cotninue in Windows view');
57+
return const Text('Continue in Windows view');
58+
case TargetPlatform.macOS:
59+
return const Text('Continue in macOS view');
5860
case TargetPlatform.fuchsia:
5961
case TargetPlatform.linux:
60-
case TargetPlatform.macOS:
6162
throw UnimplementedError('Platform not yet implemented');
6263
}
6364
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Flutter-related
2+
**/Flutter/ephemeral/
3+
**/Pods/
4+
5+
# Xcode-related
6+
**/dgph
7+
**/xcuserdata/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "ephemeral/Flutter-Generated.xcconfig"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "ephemeral/Flutter-Generated.xcconfig"

0 commit comments

Comments
 (0)