Browse Source

OSX fixes

lucky1213 4 years ago
parent
commit
90077c66e4

+ 1
- 0
packages/zefyr/lib/src/widgets/__theme.dart View File

230
     String fontFamily;
230
     String fontFamily;
231
     switch (themeData.platform) {
231
     switch (themeData.platform) {
232
       case TargetPlatform.iOS:
232
       case TargetPlatform.iOS:
233
+      case TargetPlatform.macOS:
233
         fontFamily = 'Menlo';
234
         fontFamily = 'Menlo';
234
         break;
235
         break;
235
       case TargetPlatform.android:
236
       case TargetPlatform.android:

+ 1
- 0
packages/zefyr/lib/src/widgets/common.dart View File

60
       Color cursorColor;
60
       Color cursorColor;
61
       switch (theme.platform) {
61
       switch (theme.platform) {
62
         case TargetPlatform.iOS:
62
         case TargetPlatform.iOS:
63
+        case TargetPlatform.macOS:
63
           cursorColor ??= CupertinoTheme.of(context).primaryColor;
64
           cursorColor ??= CupertinoTheme.of(context).primaryColor;
64
           break;
65
           break;
65
 
66