Add i18n support

This commit is contained in:
2023-08-29 14:06:23 +08:00
parent cabd39e15f
commit 48d38652bf
7 changed files with 48 additions and 7 deletions

4
lib/utils.dart Normal file
View File

@@ -0,0 +1,4 @@
import 'dart:io' show Platform;
import 'package:flutter/foundation.dart';
bool get isDesktop => !kIsWeb && (Platform.isWindows || Platform.isLinux || Platform.isMacOS);