Hide course analytics download button on mobile (#4241)

This commit is contained in:
Kelrap 2025-10-03 11:52:23 -04:00 committed by GitHub
parent 5d4d51b10b
commit e9a2d97d37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,3 +1,4 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:collection/collection.dart';
@ -45,7 +46,8 @@ class SpaceAnalyticsView extends StatelessWidget {
mini: mini,
hideLabel: false,
),
if (controller.room != null &&
if (kIsWeb &&
controller.room != null &&
controller.availableAnalyticsRooms.isNotEmpty)
_MenuButton(
text: L10n.of(context).download,