feat: Add some tooltipps
This commit is contained in:
parent
ffd1e764a2
commit
5d794a277b
6 changed files with 47 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ import 'package:flutter/foundation.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_sound_lite/flutter_sound.dart';
|
||||
import 'package:universal_html/prefer_universal/html.dart' as html;
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
import '../utils/ui_fake.dart' if (dart.library.html) 'dart:ui' as ui;
|
||||
import 'matrix.dart';
|
||||
import '../utils/event_extension.dart';
|
||||
|
|
@ -162,6 +163,9 @@ class _AudioPlayerState extends State<AudioPlayer> {
|
|||
: Icons.play_arrow_outlined,
|
||||
color: widget.color,
|
||||
),
|
||||
tooltip: flutterSound.isPlaying
|
||||
? L10n.of(context).audioPlayerPause
|
||||
: L10n.of(context).audioPlayerPlay,
|
||||
onPressed: () {
|
||||
if (status == AudioPlayerStatus.DOWNLOADED) {
|
||||
_playAction();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue