Platform check for videos library

This commit is contained in:
Miroslav Mazel
2023-03-21 21:22:07 +01:00
parent f32bd1be0f
commit 283605eb4b

View File

@@ -16,6 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_html/flutter_html.dart';
@@ -217,7 +219,7 @@ class ExerciseDetail extends StatelessWidget {
List<Widget> getVideos() {
// TODO: add carousel for the other videos
final List<Widget> out = [];
if (_exerciseBase.videos.isNotEmpty) {
if (_exerciseBase.videos.isNotEmpty && !(Platform.isLinux || Platform.isMacOS)) {
_exerciseBase.videos.map((v) => ExerciseVideoWidget(video: v)).forEach((element) {
out.add(element);
});