1234567891011121314151617181920212223 |
- import 'package:flutter/material.dart';
- import 'package:get/get.dart';
- import '../index.dart';
- import 'speaker_wave.dart';
- class SpeakerUI extends GetView<HardwareDetectionController> {
- @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();
- });
- }
- }
|