add some config to project and change come simple ui

This commit is contained in:
DASHU
2024-08-24 00:18:23 +08:00
parent 7eb533d74a
commit b6e8f5e55d
18 changed files with 908 additions and 28 deletions

View 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();
}
}