import 'package:flutter/material.dart'; import 'package:get/get.dart'; import '../index.dart'; import 'speaker_wave.dart'; class SpeakerUI extends GetView { @override Widget build(BuildContext context) { return Obx(() { if (controller.state.speakerList.isEmpty) { return Container(); } return controller.state.isDisplaySpeakerWave ? SpeakerWave( audioPlayer: controller.flutterSound, isPlaying: controller.state.detectingSpeaker, width: 250.0, height: 40.0, ) : Container(); }); } }