feat: turn off countly

This commit is contained in:
lollipopkit
2024-04-23 00:58:04 +08:00
parent 1249055668
commit 73f2926469
20 changed files with 61 additions and 38 deletions

View File

@@ -158,7 +158,7 @@ class _HomePageState extends State<HomePage>
Widget _buildBottomBar() {
return NavigationBar(
selectedIndex: _selectIndex.value,
height: kBottomNavigationBarHeight * 1.2,
height: kBottomNavigationBarHeight * 1.1,
animationDuration: const Duration(milliseconds: 250),
onDestinationSelected: (int index) {
if (_selectIndex.value == index) return;

View File

@@ -1043,6 +1043,7 @@ class _SettingPageState extends State<SettingPage> {
return ExpandTile(
title: Text(l10n.more),
children: [
if (isAndroid || isIOS) _buildCollectUsage(),
_buildCollapseUI(),
_buildCupertinoRoute(),
if (isDesktop) _buildHideTitleBar(),
@@ -1087,4 +1088,12 @@ class _SettingPageState extends State<SettingPage> {
trailing: StoreSwitch(prop: _setting.editorSoftWrap),
);
}
Widget _buildCollectUsage() {
return ListTile(
title: const Text('Countly'),
subtitle: Text(l10n.collectUsage, style: UIs.textGrey),
trailing: StoreSwitch(prop: _setting.collectUsage),
);
}
}

View File

@@ -189,7 +189,8 @@ class _SSHPageState extends State<SSHPage> with AutomaticKeepAliveClientMixin {
return SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: _virtKeysList.expand((e) => e).map(_buildVirtKeyItem).toList(),
children:
_virtKeysList.expand((e) => e).map(_buildVirtKeyItem).toList(),
),
);
}