mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-09 15:12:10 -05:00
18 lines
361 B
Dart
18 lines
361 B
Dart
import 'dart:io' show Platform;
|
|
|
|
import 'package:flutter/foundation.dart' show kIsWeb;
|
|
|
|
/// [getMonospaceFontFamily] returns the correct monospace font family for the
|
|
/// current platform.
|
|
String getMonospaceFontFamily() {
|
|
if (kIsWeb) {
|
|
return 'Courier';
|
|
}
|
|
|
|
if (Platform.isIOS || Platform.isMacOS) {
|
|
return 'Courier';
|
|
}
|
|
|
|
return 'monospace';
|
|
}
|