mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 18:04:18 +01:00
add some config to project and change come simple ui
This commit is contained in:
15
lib/util/table_mode_util.dart
Normal file
15
lib/util/table_mode_util.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:nostr_sdk/utils/platform_util.dart';
|
||||
|
||||
import '../const/base_consts.dart';
|
||||
import '../main.dart';
|
||||
|
||||
class TableModeUtil {
|
||||
static bool isTableMode() {
|
||||
if (settingProvider.tableMode == OpenStatus.OPEN) {
|
||||
return true;
|
||||
} else if (settingProvider.tableMode == OpenStatus.CLOSE) {
|
||||
return false;
|
||||
}
|
||||
return PlatformUtil.isTableModeWithoutSetting();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user